• Resolved s1de7

    (@side777)


    The plugin ignores filtered upload_dir (on multisite only?) by saving its data to the default upload location. I guess this would also lead to problems with backing up uploaded media.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor alaasalama

    (@alaasalama)

    Hi @side777
    Our dev team tried to reproduce this issue by defining a custom UPLOADS constant in wp-config.php file and it worked just fine, also they tried using custom filter and it worked as well.

    Please let us know how exactly you are defining the custom upload location. Feel free to use this form to share any information/steps you like.

    Thanks,
    Alaa

    Thread Starter s1de7

    (@side777)

    I add the filter to the upload_dir hook in the functions.php of the theme. This is working for media files and as returned by wp_upload_dir().

    I just tested adding the filter as a mu-pluging and now it is working. This means your plugin is calling wp_upload_dir() before the theme is loaded.

    • This reply was modified 3 months, 3 weeks ago by s1de7.
    Plugin Author Rene Hermenau

    (@renehermi)

    Good catch @side777

    WP Staging runs on the plugins_loaded hook which is before loading the functions.php.
    We will keep that in mind mentioning to other users with a similiar need. Thanks for the heads up.

    All the best
    René

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.