WordPress.org

Make WordPress Core

Changeset 38479


Ignore:
Timestamp:
08/31/2016 07:14:54 PM (3 years ago)
Author:
westonruter
Message:

Customize: Fix i18n by re-using the add_new_item post type label instead of using a post type name in a generic string.

Props afercia, westonruter.
See #34923.
Fixes #37895.

File:
1 edited

Legend:

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

    r38478 r38479  
    940940                            <?php if ( current_user_can( $post_type_obj->cap->create_posts ) && current_user_can( $post_type_obj->cap->publish_posts ) ) : ?>
    941941                                <div class="new-content-item">
    942                                     <input type="text" class="create-item-input" placeholder="<?php
    943                                     /* translators: %s: Singular title of post type or taxonomy */
    944                                     printf( __( 'Create New %s' ), $post_type_obj->labels->singular_name ); ?>">
     942                                    <input type="text" class="create-item-input" placeholder="<?php echo esc_attr( $post_type_obj->labels->add_new_item ); ?>">
    945943                                    <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button>
    946944                                </div>
Note: See TracChangeset for help on using the changeset viewer.