[wp-trac] [WordPress Trac] #26900: unregister_nav_menu() should remove_theme_support()
WordPress Trac
noreply at wordpress.org
Tue Jan 21 19:01:06 UTC 2014
#26900: unregister_nav_menu() should remove_theme_support()
--------------------------+-----------------------------
Reporter: kovshenin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.0
Severity: normal | Keywords:
--------------------------+-----------------------------
I thought about this when reading through #26276. When a child theme (or a
plugin) unregisters all menu items, `current_theme_supports` still returns
true for menus, which can cause certain weirdness with the UI:
* If widgets are not supported, the Menus menu is still visible
* The "your theme has no menus but you can use a widget" text is not
displayed on the Menus screen
* The "Theme locations" label is visible on the Menus screen but the list
is empty
Since `register_nav_menu()` adds theme support, I think
`unregister_nav_menu()` should remove it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26900>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list