Customizer: Correctly display "Select" option in Navigation section dropdowns.

props kucrut.
fixes #30929.
Built from https://develop.svn.wordpress.org/trunk@31069


git-svn-id: http://core.svn.wordpress.org/trunk@31050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-01-07 19:50:23 +00:00
parent 833c148bb5
commit 23a5deba53
2 changed files with 2 additions and 2 deletions

View File

@ -1175,7 +1175,7 @@ final class WP_Customize_Manager {
) ); ) );
if ( $menus ) { if ( $menus ) {
$choices = array( 0 => __( '— Select —' ) ); $choices = array( '' => __( '— Select —' ) );
foreach ( $menus as $menu ) { foreach ( $menus as $menu ) {
$choices[ $menu->term_id ] = wp_html_excerpt( $menu->name, 40, '…' ); $choices[ $menu->term_id ] = wp_html_excerpt( $menu->name, 40, '…' );
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.2-alpha-31068'; $wp_version = '4.2-alpha-31069';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.