Ticket #31540: 31540.3.diff
File 31540.3.diff, 1.2 KB (added by , 9 years ago) |
---|
-
wp-includes/class-wp-customize-control.php
474 474 <?php 475 475 break; 476 476 case 'dropdown-pages': 477 $dropdown = wp_dropdown_pages( 477 ?> 478 <label> 479 <?php if ( ! empty( $this->label ) ) : ?> 480 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> 481 <?php endif; 482 if ( ! empty( $this->description ) ) : ?> 483 <span class="description customize-control-description"><?php echo $this->description; ?></span> 484 <?php endif; ?> 485 486 <?php $dropdown = wp_dropdown_pages( 478 487 array( 479 488 'name' => '_customize-dropdown-pages-' . $this->id, 480 489 'echo' => 0, … … 486 495 487 496 // Hackily add in the data link parameter. 488 497 $dropdown = str_replace( '<select', '<select ' . $this->get_link(), $dropdown ); 489 490 printf( 491 '<label class="customize-control-select"><span class="customize-control-title">%s</span> %s</label>', 492 $this->label, 493 $dropdown 494 ); 498 echo $dropdown; 499 ?> 500 </label> 501 <?php 495 502 break; 496 503 default: 497 504 ?>