Ticket #32726: 32726.patch
| File 32726.patch, 2.9 KB (added by , 10 years ago) |
|---|
-
src/wp-includes/class-wp-customize-control.php
103 103 public $input_attrs = array(); 104 104 105 105 /** 106 * @access public 107 * @var string 108 */ 109 public $label_text_class = ''; 110 111 /** 106 112 * @deprecated It is better to just call the json() method 107 113 * @access public 108 114 * @var array … … 447 453 ?> 448 454 <label> 449 455 <?php if ( ! empty( $this->label ) ) : ?> 450 <span class="customize-control-title "><?php echo esc_html( $this->label ); ?></span>456 <span class="customize-control-title <?php echo $this->label_text_class; ?>"><?php echo esc_html( $this->label ); ?></span> 451 457 <?php endif; 452 458 if ( ! empty( $this->description ) ) : ?> 453 459 <span class="description customize-control-description"><?php echo $this->description; ?></span> … … 466 472 ?> 467 473 <label> 468 474 <?php if ( ! empty( $this->label ) ) : ?> 469 <span class="customize-control-title "><?php echo esc_html( $this->label ); ?></span>475 <span class="customize-control-title <?php echo $this->label_text_class; ?>"><?php echo esc_html( $this->label ); ?></span> 470 476 <?php endif; 471 477 if ( ! empty( $this->description ) ) : ?> 472 478 <span class="description customize-control-description"><?php echo $this->description; ?></span> … … 499 505 ?> 500 506 <label> 501 507 <?php if ( ! empty( $this->label ) ) : ?> 502 <span class="customize-control-title "><?php echo esc_html( $this->label ); ?></span>508 <span class="customize-control-title <?php echo $this->label_text_class; ?>"><?php echo esc_html( $this->label ); ?></span> 503 509 <?php endif; 504 510 if ( ! empty( $this->description ) ) : ?> 505 511 <span class="description customize-control-description"><?php echo $this->description; ?></span> … … 1748 1754 protected function content_template() { 1749 1755 ?> 1750 1756 <label> 1757 <span class="screen-reader-text"><?php _e( 'Menu name' ); ?></span> 1751 1758 <input type="text" class="menu-name-field live-update-section-title" /> 1752 1759 </label> 1753 1760 <?php -
src/wp-includes/class-wp-customize-nav-menus.php
485 485 ) ); 486 486 487 487 $this->manager->add_control( 'new_menu_name', array( 488 'label' => '',488 'label' => __( 'New menu name' ), 489 489 'section' => 'add_menu', 490 490 'type' => 'text', 491 491 'input_attrs' => array( … … 492 492 'class' => 'menu-name-field', 493 493 'placeholder' => __( 'New menu name' ), 494 494 ), 495 'label_text_class' => 'screen-reader-text', 495 496 ) ); 496 497 497 498 $this->manager->add_setting( 'create_new_menu', array(