[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 01:38:57 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 griffinjt):

 Replying to [comment:9 dd32]:
 > Any plugin that passes a `__FILE__` to add_sub_menu() (or the other
 variants of it) and don't specify a callback function will trigger it.

 Since inactive plugins can still trigger this, there should be probably be
 a check (although I don't know how feasible it is in this case) to make
 sure that the plugin from which the file is being called is actually
 active before it adds that particular menu item.

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


More information about the wp-trac mailing list