[wpmu-trac] [WordPress MU Trac] #885: Link to Dashboard mistakenly uses admin.php

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Jan 30 15:11:08 GMT 2009


#885: Link to Dashboard mistakenly uses admin.php
----------------------------+-----------------------------------------------
 Reporter:  freddyware      |       Owner:  somebody
     Type:  defect          |      Status:  new     
 Priority:  normal          |   Milestone:          
Component:  Administration  |     Version:  2.7     
 Severity:  major           |    Keywords:          
----------------------------+-----------------------------------------------
 I recently upgraded to WordPress µ 2.7, and encountered a strange bug with
 the new menu.

 The link to the Dashboard in the new WordPress 2.7 admin menu linked to
 `/wp-admin/admin.php?page=index.php` rather than `/wp-admin/index.php`.
 After looking through the menu-related PHP files in the wp-admin folder,
 it seems that the check

 {{{
 if ( file_exists(WP_PLUGIN_DIR . "/[filename of item]") ||
 !empty($menu_hook) || file_exists(WPMU_PLUGIN_DIR . "/[filename of item]")
 ) {
 }}}

 which is used multiple times with variations in the filename part, will
 pick up on `index.php` in the `mu-plugins` and `plugins` folder. That, in
 turn, leads to the dashboard link turning into an
 `admin.php?page=index.php` link.

 I believe that the `index.php` files in `mu-plugins` and `plugins` was
 from some earlier version, where the code

 {{{
 <?php
 // Silence is golden.
 ?>
 }}}

 was used to prevent a directory listing of those folders.

 I am unsure of the way to fix this except by deleting/renaming the
 `index.php` file in those folders.

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


More information about the wpmu-trac mailing list