[wp-trac] [WordPress Trac] #22079: Plugin filenames can break links in the admin menu

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 2 15:18:05 UTC 2012


#22079: Plugin filenames can break links in the admin menu
--------------------------------------+----------------------------
 Reporter:  simonwheatley             |       Type:  defect (bug)
   Status:  new                       |   Priority:  normal
Milestone:  Awaiting Review           |  Component:  Administration
  Version:  3.4.2                     |   Severity:  normal
 Keywords:  2nd-opinion dev-feedback  |
--------------------------------------+----------------------------
 For example:

 Creating a plugin at ```wp-content/plugins/import.php``` will break the
 Tools > Import link, changing the (correct) link from ```/wp-
 admin/import.php``` to ```/wp-admin/tools.php?page=import.php```. This
 also works/breaks with ```plugins.php```, ```export.php```, etc.

 The issue seems to be some code in
 ```[http://core.trac.wordpress.org/browser/tags/3.4.2/wp-admin/menu-
 header.php#L153 _wp_menu_output]```, which checks for the existence of
 files in the plugins directory and changes the link if they are found. I'm
 guessing this code relates to the ability to link to plugin files from the
 admin menu?

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


More information about the wp-trac mailing list