[wp-trac] [WordPress Trac] #11840: Define WP_PLUGIN_DIR before loading db.php
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 9 11:18:41 UTC 2010
#11840: Define WP_PLUGIN_DIR before loading db.php
-------------------------+--------------------------------------------------
Reporter: sirzooro | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: General | Version: 2.9.1
Severity: normal | Keywords: has-patch tested
-------------------------+--------------------------------------------------
In my plugin (DB Cache Reloaded) I provide custom db.php file, and in in I
need to know the plugin directory. Unfortunately `WP_PLUGIN_DIR` is
defined after this file is loaded, so now I have to define it in my
plugin.
Attached patch moves this define before db.php is loaded.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11840>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list