Make WordPress Core


Ignore:
Timestamp:
05/25/2021 10:48:02 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Remove some unused strings from built-in post type declarations.

The customize_changeset, wp_block, and wp_template post types are not displayed in the admin menu or in the admin bar.

If they do get added, the labels can just fall back to name and singular_name until separate strings are required for more flexible translations.

Follow-up to [38810], [44146], [51003].

See #53176.

File:
1 edited

Legend:

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

    r51014 r51015  
    178178                'name'               => _x( 'Changesets', 'post type general name' ),
    179179                'singular_name'      => _x( 'Changeset', 'post type singular name' ),
    180                 'menu_name'          => _x( 'Changesets', 'admin menu' ),
    181                 'name_admin_bar'     => _x( 'Changeset', 'add new on admin bar' ),
    182180                'add_new'            => _x( 'Add New', 'Customize Changeset' ),
    183181                'add_new_item'       => __( 'Add New Changeset' ),
     
    262260                'name'                     => _x( 'Reusable blocks', 'post type general name' ),
    263261                'singular_name'            => _x( 'Reusable block', 'post type singular name' ),
    264                 'menu_name'                => _x( 'Reusable blocks', 'admin menu' ),
    265                 'name_admin_bar'           => _x( 'Reusable block', 'add new on admin bar' ),
    266262                'add_new'                  => _x( 'Add New', 'Reusable block' ),
    267263                'add_new_item'             => __( 'Add new Reusable block' ),
     
    317313                'name'                  => __( 'Templates' ),
    318314                'singular_name'         => __( 'Template' ),
    319                 'menu_name'             => _x( 'Templates', 'Admin Menu text' ),
    320315                'add_new'               => _x( 'Add New', 'Template' ),
    321316                'add_new_item'          => __( 'Add New Template' ),
Note: See TracChangeset for help on using the changeset viewer.