Make WordPress Core


Ignore:
Timestamp:
09/05/2023 07:24:31 PM (12 months ago)
Author:
joedolson
Message:

Administration: Add improved context for add new links.

Consistently expand Add New links to include the type of content to add. Improve consistency of text casing to use initial caps throughout.

Props afercia, gonzomir, alexstine, swissspidy, joedolson.
Fixes #47125.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-post-type.php

    r55988 r56515  
    832832            'name'                     => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ),
    833833            'singular_name'            => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ),
    834             'add_new'                  => array( _x( 'Add New', 'post' ), _x( 'Add New', 'page' ) ),
     834            'add_new'                  => array( __( 'Add New Post' ), __( 'Add New Page' ) ),
    835835            'add_new_item'             => array( __( 'Add New Post' ), __( 'Add New Page' ) ),
    836836            'edit_item'                => array( __( 'Edit Post' ), __( 'Edit Page' ) ),
Note: See TracChangeset for help on using the changeset viewer.