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:
parent
5e3c64657a
commit
0e057556d3
@ -595,6 +595,11 @@ final class WP_Customize_Nav_Menus {
|
|||||||
} else {
|
} else {
|
||||||
$description .= '<p>' . __( 'Menus can be displayed in locations defined by your theme.' ) . '</p>';
|
$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(
|
$this->manager->add_panel(
|
||||||
new WP_Customize_Nav_Menus_Panel(
|
new WP_Customize_Nav_Menus_Panel(
|
||||||
$this->manager,
|
$this->manager,
|
||||||
@ -603,7 +608,6 @@ final class WP_Customize_Nav_Menus {
|
|||||||
'title' => __( 'Menus' ),
|
'title' => __( 'Menus' ),
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
'priority' => 100,
|
'priority' => 100,
|
||||||
// 'theme_supports' => 'menus|widgets', @todo allow multiple theme supports
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user