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.


git-svn-id: https://develop.svn.wordpress.org/trunk@38479 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2016-08-31 19:14:54 +00:00
parent 6631163639
commit 1dfd45923e
1 changed files with 1 additions and 3 deletions

View File

@ -939,9 +939,7 @@ final class WP_Customize_Nav_Menus {
<?php $post_type_obj = get_post_type_object( $available_item_type['object'] ); ?>
<?php if ( current_user_can( $post_type_obj->cap->create_posts ) && current_user_can( $post_type_obj->cap->publish_posts ) ) : ?>
<div class="new-content-item">
<input type="text" class="create-item-input" placeholder="<?php
/* translators: %s: Singular title of post type or taxonomy */
printf( __( 'Create New %s' ), $post_type_obj->labels->singular_name ); ?>">
<input type="text" class="create-item-input" placeholder="<?php echo esc_attr( $post_type_obj->labels->add_new_item ); ?>">
<button type="button" class="button add-content"><?php _e( 'Add' ); ?></button>
</div>
<?php endif; ?>