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
This commit is contained in:
Sergey Biryukov 2015-01-07 19:49:17 +00:00
parent c99a082e25
commit bac33e9a17

View File

@ -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, '…' );
}