Make WordPress Core


Ignore:
Timestamp:
06/15/2023 01:37:09 AM (3 years 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.

File:
1 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.' ) ),
Note: See TracChangeset for help on using the changeset viewer.