[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:31:29 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):

 > What would be a use-case for that? Backwards compat? Seems like an odd
 piece of code.

 Back-compat for a looong time ago, when plugins registered menu's
 directing to specific files rather than a slug+function is my guess.

 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.

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


More information about the wp-trac mailing list