From 4f35907147df1afdc99143af3813604967807a40 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 19 Dec 2018 07:23:47 +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. Built from https://develop.svn.wordpress.org/trunk@44328 git-svn-id: http://core.svn.wordpress.org/trunk@44158 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-nav-menus.php | 6 +++++- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-nav-menus.php b/wp-includes/class-wp-customize-nav-menus.php index cb2f137868..a6bae20c87 100644 --- a/wp-includes/class-wp-customize-nav-menus.php +++ b/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 ) ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 2fd139f664..3006df6caa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44327'; +$wp_version = '5.1-alpha-44328'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.