WP_PLUGIN_DIR define collision
-
Hi,
There’s a define on line 15 of ajax.php which is causing an error for me. On local I define this up-front to avoid too much DB wrangling, so when the plugin redefines it I get a Notice level error, which (because I’m local and have WP_DEBUG true) breaks the resulting JS file.
Simple fix:
if (!defined('WP_PLUGIN_DIR')) { define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash }
I’ve put this in my local copy but would be great if you could merge it into the plugin so my ridiculous edge-case don’t get clobbered with the next upgrade?
Ta very much!
( Couldn’t find how to send a pull request!)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WP_PLUGIN_DIR define collision’ is closed to new replies.