[Plugin: Attachment Extender] Suggestion to improve support for WordPress 2.6 and later
-
WordPress 2.6 and later lets you move your wp-config.php up a directory and out of your public web root for security reasons.
A quick way to enable this plugin to support this would be to change line 14 of “attachment-extender.php” from…
require_once('../../../wp-config.php');
To…
require_once('../../../wp-load.php');
Then the wp-load.php file can take care of finding the config file for you.
One caveat is that making this change would break support for clients older than 2.6.
I think a few more lines of code could check for the existence of wp-load.php and use the new method else fall back to loading the old location of wp-config.php though. 🙂
Let me know if you want me to whip up this code for ya.
Cheers!
- The topic ‘[Plugin: Attachment Extender] Suggestion to improve support for WordPress 2.6 and later’ is closed to new replies.