From 0e057556d3a7314966e6d87018057a1562a8585a Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 19 Dec 2018 07:22:02 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-customize-nav-menus.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-customize-nav-menus.php b/src/wp-includes/class-wp-customize-nav-menus.php index cb2f137868..a6bae20c87 100644 --- a/src/wp-includes/class-wp-customize-nav-menus.php +++ b/src/wp-includes/class-wp-customize-nav-menus.php @@ -595,6 +595,11 @@ final class WP_Customize_Nav_Menus { } else { $description .= '

' . __( 'Menus can be displayed in locations defined by your theme.' ) . '

'; } + + /* + * 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 ) ) );