[wp-trac] [WordPress Trac] #37003: Removing `menus` support for a theme doesn't remove Menus section in Customizer
WordPress Trac
noreply at wordpress.org
Thu Jun 2 14:54:35 UTC 2016
#37003: Removing `menus` support for a theme doesn't remove Menus section in
Customizer
--------------------------+-----------------------------
Reporter: slaFFik | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Removing `menus` support for a theme doesn't remove Menus section in
Customizer.
I'm using this code:
{{{#!php
<?php
function theme_setup() {
remove_theme_support( 'menus' );
}
add_action( 'after_setup_theme', 'theme_setup' );
}}}
Tested in 2016 with `remove_theme_support( 'menus' );` and commented out
code about registering menus locations.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37003>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list