[wp-trac] [WordPress Trac] #23508: Nav Menu Saving: get_nav_menu_locations() can return false, code expects array
WordPress Trac
noreply at wordpress.org
Tue Feb 19 00:31:24 UTC 2013
#23508: Nav Menu Saving: get_nav_menu_locations() can return false, code expects
array
-----------------------------+--------------------------
Reporter: Viper007Bond | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Menus
Version: | Severity: normal
Keywords: needs-patch |
-----------------------------+--------------------------
`get_nav_menu_locations()` can return `false` (it is right now with Twenty
Thirteen) but `/wp-admin/nav-menu.php` tries to always treat it as an
array:
https://core.trac.wordpress.org/browser/trunk/wp-admin/nav-
menus.php?rev=23441#L277
This throws a warning and breaks stuff.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23508>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list