Ticket #42565: 42565.2.diff
File 42565.2.diff, 1.5 KB (added by , 7 years ago) |
---|
-
src/wp-includes/customize/class-wp-customize-nav-menu-control.php
35 35 * @since 4.3.0 36 36 */ 37 37 public function content_template() { 38 $add_items = __( 'Add Items' ); 38 39 ?> 39 <p class="new-menu-item-invitation"><?php _e( 'Time to add some links! Click “Add menu items” to start putting pages, categories, and custom links in your menu. Add as many things as you’d like.' ); ?></p> 40 <p class="new-menu-item-invitation"> 41 <?php 42 echo esc_html( sprintf( 43 /* translators: %s: "Add Items" button text */ 44 __( 'Time to add some links! Click “%s” to start putting pages, categories, and custom links in your menu. Add as many things as you’d like.' ), 45 $add_items 46 ) ); 47 ?> 48 </p> 40 49 <div class="customize-control-nav_menu-buttons"> 41 50 <button type="button" class="button add-new-menu-item" aria-label="<?php esc_attr_e( 'Add or remove menu items' ); ?>" aria-expanded="false" aria-controls="available-menu-items"> 42 <?php _e( 'Add Items'); ?>51 <?php echo esc_html( $add_items ); ?> 43 52 </button> 44 53 <button type="button" class="button-link reorder-toggle" aria-label="<?php esc_attr_e( 'Reorder menu items' ); ?>" aria-describedby="reorder-items-desc-{{ data.menu_id }}"> 45 54 <span class="reorder"><?php _e( 'Reorder' ); ?></span>