Make WordPress Core

Ticket #30929: 30929.diff

File 30929.diff, 568 bytes (added by kucrut, 10 years ago)

Use empty string as default option's value instead of 0.

  • src/wp-includes/class-wp-customize-manager.php

    diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
    index 60303e6..5d68f1c 100644
    final class WP_Customize_Manager { 
    11591159                ) );
    11601160
    11611161                if ( $menus ) {
    1162                         $choices = array( 0 => __( '— Select —' ) );
     1162                        $choices = array( '' => __( '— Select —' ) );
    11631163                        foreach ( $menus as $menu ) {
    11641164                                $choices[ $menu->term_id ] = wp_html_excerpt( $menu->name, 40, '…' );
    11651165                        }