[wp-trac] [WordPress Trac] #3909: Plugin handling Inconsistency as a consequence of ticket #3157

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 5 13:10:18 GMT 2007


#3909: Plugin handling Inconsistency as a consequence of ticket #3157
---------------------+------------------------------------------------------
 Reporter:  z720     |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  low      |   Milestone:  2.1.3    
Component:  General  |     Version:  2.1      
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 I saw in ticket #3157 that constant PLUGINDIR was introduced instead of
 "wp-content/plugins", well but the job is half done...

 When modified in wp-config.php PLUGINDIR works well for the admin part :
 the plugins get detected in the admin and can be activated. But they are
 totally ineffective in the frontend because they don't get loaded.

 I found in wp-settings.php (in the trunk) at line 200
 {{{
 if ( get_option('active_plugins') ) {
         $current_plugins = get_option('active_plugins');
         if ( is_array($current_plugins) ) {
                 foreach ($current_plugins as $plugin) {
                         if ('' != $plugin && file_exists(ABSPATH . 'wp-
 content/plugins/' . $plugin))
                                 include_once(ABSPATH . 'wp-
 content/plugins/' . $plugin);
                 }
         }
 }
 }}}

 but it should be :

 {{{
 if ( get_option('active_plugins') ) {
         $current_plugins = get_option('active_plugins');
         if ( is_array($current_plugins) ) {
                 foreach ($current_plugins as $plugin) {
                         if ('' != $plugin && file_exists(ABSPATH .
 PLUGINDIR . $plugin))
                                 include_once(ABSPATH . PLUGINDIR .
 $plugin);
                 }
         }
 }
 }}}

 as PLUGINDIR is defined around line 95.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3909>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list