[wp-trac] [WordPress Trac] #23627: Allow plugins to short-circuit wp_nav_menu, good for performance
WordPress Trac
noreply at wordpress.org
Thu Feb 6 08:27:06 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):
Replying to [comment:13 Rarst]:
> Nitpicking on patch - why check for null twice? Also yoda condition.
I personally find the single level indentation more readable. Agreed about
Yoda.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23627#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list