Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ian Dunn

    (@iandunn)

    Hi jcow, the purpose to that line is to provide a detection mechanism to make sure the new filter exists. When the plugin loads, it checks if that constant exists. If it doesn’t, it alerts the user that it’s missing.

    When WP is upgraded, it will overwrite that constant and the filter, so then the plugin will alert the user that it’s missing.

    If it were in wp-config.php, it wouldn’t get overwritten during upgrades, even though the new filter would be. So, the user wouldn’t be reminded that they need to re-apply the filter after upgrading.

    Thread Starter Jupitercow

    (@jcow)

    Gotcha. that makes sense. I will move it back so I get the detection back. Thanks!

    I really hope someday this filter gets added permanently, but your plugin is a huge help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Overwrite Uploads] Move half of the install to wp-config’ is closed to new replies.