Customize: Correct "Add Items" button reference in help text shown after creating a new menu.
Props dlh, munyagu, rishishah. Merges [42568] to the 4.9 branch. Fixes #42565. Built from https://develop.svn.wordpress.org/branches/4.9@42569 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
83dc4c9339
commit
54194f2ec6
|
@ -35,11 +35,20 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
|
||||||
* @since 4.3.0
|
* @since 4.3.0
|
||||||
*/
|
*/
|
||||||
public function content_template() {
|
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">
|
<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">
|
<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>
|
||||||
<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 }}">
|
<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>
|
<span class="reorder"><?php _e( 'Reorder' ); ?></span>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9.3-alpha-42567';
|
$wp_version = '4.9.3-alpha-42569';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue