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

WordPress Trac noreply at wordpress.org
Tue Mar 5 03:55:33 UTC 2013


#22079: Plugin filenames can break links in the admin menu
-----------------------------------------------+------------------
 Reporter:  simonwheatley                      |       Owner:
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  3.6
Component:  Administration                     |     Version:  2.7
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch 3.6-early needs-testing  |
-----------------------------------------------+------------------
Changes (by SergeyBiryukov):

 * keywords:  dev-feedback has-patch 3.6-early needs-testing => has-patch
     3.6-early needs-testing
 * version:  3.4.2 => 2.7


Comment:

 It's not just `wp-content/plugins/import.php`.

 Filenames like these break the corresponding admin menu links too:
 * `wp-content/plugins/edit.php`
 * `wp-content/plugins/edit-comments.php`
 * `wp-content/plugins/plugin-install.php` (#20710)

 We need the `! file_exists( ABSPATH . "/wp-admin/$menu_file" )` check in
 all the three places where we have the `file_exists( WP_PLUGIN_DIR .
 "/$menu_file" )` check. See [attachment:22079.2.patch].

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


More information about the wp-trac mailing list