WordPress.org

Make WordPress Core

Changeset 42568


Ignore:
Timestamp:
01/23/2018 12:02:40 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Customize: Correct "Add Items" button reference in help text shown after creating a new menu.

Props dlh, munyagu, rishishah.
Fixes #42565.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-control.php

    r41956 r42568  
    3636     */
    3737    public function content_template() {
     38        $add_items = __( 'Add Items' );
    3839        ?>
    39         <p class="new-menu-item-invitation"><?php _e( 'Time to add some links! Click &#8220;Add menu items&#8221; to start putting pages, categories, and custom links in your menu. Add as many things as you&#8217;d like.' ); ?></p>
     40        <p class="new-menu-item-invitation">
     41            <?php
     42            printf(
     43                /* translators: %s: "Add Items" button text */
     44                __( 'Time to add some links! Click &#8220;%s&#8221; to start putting pages, categories, and custom links in your menu. Add as many things as you&#8217;d like.' ),
     45                $add_items
     46            );
     47            ?>
     48        </p>
    4049        <div class="customize-control-nav_menu-buttons">
    4150            <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 $add_items; ?>
    4352            </button>
    4453            <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 }}">
Note: See TracChangeset for help on using the changeset viewer.