Changeset 38624 for trunk/src/wp-includes/class-wp-customize-control.php
- Timestamp:
- 09/20/2016 12:46:54 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-control.php
r38470 r38624 534 534 <?php endif; ?> 535 535 536 <?php $dropdown = wp_dropdown_pages( 536 <?php 537 $dropdown_name = '_customize-dropdown-pages-' . $this->id; 538 $show_option_none = __( '— Select —' ); 539 $option_none_value = '0'; 540 $dropdown = wp_dropdown_pages( 537 541 array( 538 'name' => '_customize-dropdown-pages-' . $this->id,542 'name' => $dropdown_name, 539 543 'echo' => 0, 540 'show_option_none' => __( '— Select —' ),541 'option_none_value' => '0',544 'show_option_none' => $show_option_none, 545 'option_none_value' => $option_none_value, 542 546 'selected' => $this->value(), 543 547 ) 544 548 ); 549 if ( empty( $dropdown ) ) { 550 $dropdown = sprintf( '<select id="%1$s" name="%1$s">', esc_attr( $dropdown_name ) ); 551 $dropdown .= sprintf( '<option value="%1$s">%2$s</option>', esc_attr( $option_none_value ), esc_html( $show_option_none ) ); 552 $dropdown .= '</select>'; 553 } 545 554 546 555 // Hackily add in the data link parameter.
Note: See TracChangeset
for help on using the changeset viewer.