Ticket #33064: 33064.diff
| File 33064.diff, 1.9 KB (added by , 10 years ago) |
|---|
-
class-wp-customize-control.php
81 81 * @var string 82 82 */ 83 83 public $label = ''; 84 85 /** 86 * @access public 87 * @var string 88 */ 89 public $screen_reader_text = ''; 84 90 85 91 /** 86 92 * @access public … … 496 502 default: 497 503 ?> 498 504 <label> 499 <?php if ( ! empty( $this->label ) ) :?>500 <span class="customize-control-title "><?php echo esc_html( $this->label ); ?></span>501 <?php endif;502 if ( ! empty( $this->description ) ) :?>505 <?php if ( ! empty( $this->label ) ) { ?> 506 <span class="customize-control-title <?php if( $this->screen_reader_text == true ) echo 'screen-reader-text'; ?>"><?php echo esc_html( $this->label ); ?></span> 507 <?php } 508 if ( ! empty( $this->description ) ) { ?> 503 509 <span class="description customize-control-description"><?php echo $this->description; ?></span> 504 <?php endif;?>510 <?php } ?> 505 511 <input type="<?php echo esc_attr( $this->type ); ?>" <?php $this->input_attrs(); ?> value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); ?> /> 506 512 </label> 507 513 <?php -
class-wp-customize-nav-menus.php
566 566 ) ); 567 567 568 568 $this->manager->add_control( 'new_menu_name', array( 569 'label' => '', 569 'label' => __( 'Enter new menu name' ), 570 'screen_reader_text' => true, 570 571 'section' => 'add_menu', 571 572 'type' => 'text', 572 573 'input_attrs' => array( 573 'class' => 'menu-name-field',574 'placeholder' => __( 'New menu name' ),574 'class' => 'menu-name-field', 575 'placeholder' => __( 'New menu name' ), 575 576 ), 576 577 ) ); 577 578