Customize: Correct "Add Items" button reference in help text shown after creating a new menu.
Props dlh, munyagu, rishishah. Fixes #42565. git-svn-id: https://develop.svn.wordpress.org/trunk@42568 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a8105ec3f2
commit
98a7f16608
|
@ -35,11 +35,20 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
|
|||
* @since 4.3.0
|
||||
*/
|
||||
public function content_template() {
|
||||
$add_items = __( 'Add Items' );
|
||||
?>
|
||||
<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>
|
||||
<p class="new-menu-item-invitation">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: "Add Items" button text */
|
||||
__( '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.' ),
|
||||
$add_items
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<div class="customize-control-nav_menu-buttons">
|
||||
<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">
|
||||
<?php _e( 'Add Items' ); ?>
|
||||
<?php echo $add_items; ?>
|
||||
</button>
|
||||
<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 }}">
|
||||
<span class="reorder"><?php _e( 'Reorder' ); ?></span>
|
||||
|
|
Loading…
Reference in New Issue