Customizer: Remove a line of commented-out code in WP_Customize_Nav_Menus::customize_register().

Retains a more explicit future-compat version of the todo notation that used to accompany the commented-out code.

Props harsh175, dlh.
Fixes #44633.


git-svn-id: https://develop.svn.wordpress.org/trunk@44328 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2018-12-19 07:22:02 +00:00
parent 5e3c64657a
commit 0e057556d3

View File

@ -595,6 +595,11 @@ final class WP_Customize_Nav_Menus {
} else {
$description .= '<p>' . __( 'Menus can be displayed in locations defined by your theme.' ) . '</p>';
}
/*
* Once multiple theme supports are allowed in WP_Customize_Panel,
* this panel can be restricted to themes that support menus or widgets.
*/
$this->manager->add_panel(
new WP_Customize_Nav_Menus_Panel(
$this->manager,
@ -603,7 +608,6 @@ final class WP_Customize_Nav_Menus {
'title' => __( 'Menus' ),
'description' => $description,
'priority' => 100,
// 'theme_supports' => 'menus|widgets', @todo allow multiple theme supports
)
)
);