[wpmu-trac] [WordPress MU Trac] #888: Bug in admin.php (fails to look in wpmu directory for plugins)

WordPress MU Trac wpmu-trac at lists.automattic.com
Tue Feb 3 21:27:06 GMT 2009


#888: Bug in admin.php (fails to look in wpmu directory for plugins)
------------------------+---------------------------------------------------
 Reporter:  deannas     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  component1  |     Version:  2.7     
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 In 2.6.5 on line 62 of wp-admin\admin.php, the line read:
 if (! ( file_exists(WP_PLUGIN_DIR . "/$plugin_page") &&
 is_file(WP_PLUGIN_DIR . "/$plugin_page") ) && ! file_exists(ABSPATH .
 MUPLUGINDIR . "/$plugin_page"))

 In 2.7 on line 81 it reads:
 if (! ( file_exists(WP_PLUGIN_DIR . "/$plugin_page") &&
 is_file(WP_PLUGIN_DIR . "/$plugin_page") ) )

 WPMU Plugins that require loading fail on line 81 with a "cannot load"
 error.

 Changing line 81 to the following fixes the bug:
 if (! ( file_exists(WP_PLUGIN_DIR . "/$plugin_page") &&
 is_file(WP_PLUGIN_DIR . "/$plugin_page") ) && ! file_exists(ABSPATH .
 MUPLUGINDIR . "/$plugin_page") )

 (Note - I tested this on the terms of use plugin, which was failing before
 bug fix.)
 http://ozblog.com.au/2008/09/20/wordpress-terms-of-use-plugin/

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/888>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list