From bac33e9a1736addfb392f89557c135ef16dff020 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 7 Jan 2015 19:49:17 +0000 Subject: [PATCH] Customizer: Correctly display "Select" option in Navigation section dropdowns. props kucrut. fixes #30929. git-svn-id: https://develop.svn.wordpress.org/trunk@31069 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 556bc60d8b..43859f1dda 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -1175,7 +1175,7 @@ final class WP_Customize_Manager { ) ); if ( $menus ) { - $choices = array( 0 => __( '— Select —' ) ); + $choices = array( '' => __( '— Select —' ) ); foreach ( $menus as $menu ) { $choices[ $menu->term_id ] = wp_html_excerpt( $menu->name, 40, '…' ); }