Support » Plugin: Overwrite Uploads » [Plugin: Overwrite Uploads] Move half of the install to wp-config

  • I think you should move this line:

    define('OVUP_FILTER_ADDED', true); // custom modification for Overwrite Uploads plugin

    to wp-config.php.

    This would simplify your install process and would make it so only one line needs to be maintained through upgrades. Is there any reason not to? I just did it and it seems to be working.

    http://wordpress.org/extend/plugins/overwrite-uploads/

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.

    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.