[wp-trac] [WordPress Trac] #23627: Allow plugins to short-circuit wp_nav_menu, good for performance

WordPress Trac noreply at wordpress.org
Wed Feb 5 14:58:39 UTC 2014


#23627: Allow plugins to short-circuit wp_nav_menu, good for performance
-------------------------+-----------------------
 Reporter:  kasparsd     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.9
Component:  Menus        |     Version:  3.5.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  template
-------------------------+-----------------------

Comment (by kasparsd):

 I just noticed that there is a bug in the patch -- it will continue
 executing the function even after echoing the filtered output. There
 should be a `return` after `echo`. I'll make a new patch that uses braces
 as suggested by @nacin.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23627#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list