[wp-trac] [WordPress Trac] #25148: Call wp_plugin_directory_constants before loading drop in files

WordPress Trac noreply at wordpress.org
Mon Aug 26 20:31:28 UTC 2013


#25148: Call wp_plugin_directory_constants before loading drop in files
--------------------------------------------+------------------------------
 Reporter:  andreasnrb                      |       Owner:
     Type:  enhancement                     |      Status:  new
 Priority:  normal                          |   Milestone:  Awaiting Review
Component:  General                         |     Version:
 Severity:  normal                          |  Resolution:
 Keywords:  2nd-opinion dev-feedback close  |
--------------------------------------------+------------------------------

Comment (by andreasnrb):

 Well the simplest solution is to check if WP_PLUGIN_DIR is defined and use
 it if it is. But would be good to be able to assume its existence so
 behavior is consistent.

 But the idea in the comment about defining paths for dropins is good as
 well. Less need to worry about these constants being set then also makes
 updating dropins on plugin updates much easier.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25148#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list