diff --git a/src/wp-includes/class-wp-post-type.php b/src/wp-includes/class-wp-post-type.php index b53a244d7de84..d5cc152616c3c 100644 --- a/src/wp-includes/class-wp-post-type.php +++ b/src/wp-includes/class-wp-post-type.php @@ -1015,6 +1015,7 @@ public static function get_default_labels() { 'item_trashed' => array( __( 'Post trashed.' ), __( 'Page trashed.' ) ), 'item_scheduled' => array( __( 'Post scheduled.' ), __( 'Page scheduled.' ) ), 'item_updated' => array( __( 'Post updated.' ), __( 'Page updated.' ) ), + 'item_draft_saved' => array( __( 'Draft saved.' ), __( 'Draft saved.' ) ), 'item_link' => array( _x( 'Post Link', 'navigation link block title' ), _x( 'Page Link', 'navigation link block title' ), diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index b225d35c48b2a..5c540756d11b1 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -323,6 +323,7 @@ function create_initial_post_types() { 'item_reverted_to_draft' => __( 'Pattern reverted to draft.' ), 'item_scheduled' => __( 'Pattern scheduled.' ), 'item_updated' => __( 'Pattern updated.' ), + 'item_draft_saved' => __( 'Pattern draft saved.' ), ), 'public' => false, '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ @@ -2143,6 +2144,8 @@ function _post_type_meta_capabilities( $capabilities = null ) { * - `item_scheduled` - Label used when an item is scheduled for publishing. Default is 'Post scheduled.' / * 'Page scheduled.' * - `item_updated` - Label used when an item is updated. Default is 'Post updated.' / 'Page updated.' + * - `item_draft_saved` - Label used when a draft is saved. Default is 'Draft saved.' for both + * non-hierarchical and hierarchical post types. * - `item_link` - Title for a navigation link block variation. Default is 'Post Link' / 'Page Link'. * - `item_link_description` - Description for a navigation link block variation. Default is 'A link to a post.' / * 'A link to a page.' @@ -2167,6 +2170,7 @@ function _post_type_meta_capabilities( $capabilities = null ) { * @since 6.4.0 Changed default values for the `add_new` label to include the type of content. * This matches `add_new_item` and provides more context for better accessibility. * @since 6.6.0 Added the `template_name` label. + * @since 7.1.0 Added the `item_draft_saved` label. * @since 6.7.0 Restored pre-6.4.0 defaults for the `add_new` label and updated documentation. * Updated core usage to reference `add_new_item`. *