Make WordPress Core

Changeset 55923


Ignore:
Timestamp:
06/15/2023 01:37:09 AM (21 months ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Introduce item_trashed post type label.

This allows the block editor to announce the correct message when an entity is moved to the Trash.

Original issue from Gutenberg repository:

Props james-roberts, ntsekouras, nrqsnchz, afercia, swissspidy, joedolson, talldanwp, SergeyBiryukov.
Fixes #51387.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r55694 r55923  
    858858            'item_published_privately' => array( __( 'Post published privately.' ), __( 'Page published privately.' ) ),
    859859            'item_reverted_to_draft'   => array( __( 'Post reverted to draft.' ), __( 'Page reverted to draft.' ) ),
     860            'item_trashed'             => array( __( 'Post trashed.' ), __( 'Page trashed.' ) ),
    860861            'item_scheduled'           => array( __( 'Post scheduled.' ), __( 'Page scheduled.' ) ),
    861862            'item_updated'             => array( __( 'Post updated.' ), __( 'Page updated.' ) ),
  • trunk/src/wp-includes/post.php

    r55845 r55923  
    19581958 * - `item_reverted_to_draft` - Label used when an item is switched to a draft.
    19591959 *                            Default is 'Post reverted to draft.' / 'Page reverted to draft.'
     1960 * - `item_trashed` - Label used when an item is moved to Trash. Default is 'Post trashed.' / 'Page trashed.'
    19601961 * - `item_scheduled` - Label used when an item is scheduled for publishing. Default is 'Post scheduled.' /
    19611962 *                    'Page scheduled.'
     
    19811982 * @since 5.7.0 Added the `filter_by_date` label.
    19821983 * @since 5.8.0 Added the `item_link` and `item_link_description` labels.
     1984 * @since 6.3.0 Added the `item_trashed` label.
    19831985 *
    19841986 * @access private
Note: See TracChangeset for help on using the changeset viewer.