[wp-trac] [WordPress Trac] #20710: Error returned when using "Add New" plugin link in the navigation menu

WordPress Trac wp-trac at lists.automattic.com
Mon May 21 00:39:53 UTC 2012


#20710: Error returned when using "Add New" plugin link in the navigation menu
----------------------------+----------------------
 Reporter:  kraftbj         |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  3.4
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |
----------------------------+----------------------

Comment (by dd32):

 This sounds like it was caused by a file directly in WP_PLUGIN_DIR called
 'plugin-install.php'.

 The WordPress admin menu has some weird code in there, that I honestly
 don't know how much would still be used:
 http://core.trac.wordpress.org/browser/trunk/wp-admin/menu-header.php#L151

 Put basically, If a $file is provided in a menu registration, it first
 checks to see if that exists in the plugins directory, and if it does,
 redirects it to the $parent?page=$file on the parent, If the file doesn't
 exist, it directs it to /$file

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


More information about the wp-trac mailing list