diff --git a/README.md b/README.md index 4f7a3f4..532a993 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Not your first time here? See [Recent Changes for Developers](https://github.com * **PHP:** 7.4 - Tested up to PHP 8.2 * **WordPress:** 5.6 - - Tested up to WP 6.2 + - Tested up to WP 6.3 ## Installation ## diff --git a/src/PostType.php b/src/PostType.php index f6fb822..2366ce5 100644 --- a/src/PostType.php +++ b/src/PostType.php @@ -186,6 +186,7 @@ public function __construct( string $post_type, array $args = [], array $names = 'item_updated' => sprintf( '%s updated.', $this->post_singular ), 'item_link' => sprintf( '%s Link', $this->post_singular ), 'item_link_description' => sprintf( 'A link to a %s.', $this->post_singular_low ), + 'item_trashed' => sprintf( '%s trashed.', $this->post_singular ), ]; # Build the featured image labels: diff --git a/tests/integration/SetupTest.php b/tests/integration/SetupTest.php index d2c6f96..8383ce9 100644 --- a/tests/integration/SetupTest.php +++ b/tests/integration/SetupTest.php @@ -165,6 +165,7 @@ public function testPostTypeLabelsAreCorrect(): void { 'item_updated' => 'Singular updated.', 'item_link' => 'Singular Link', 'item_link_description' => 'A link to a singular.', + 'item_trashed' => 'Singular trashed.', ), $bar->labels ); $featured_image = version_compare( $wp_version, '5.4', '>=' ) ? 'Featured image' : 'Featured Image'; @@ -205,6 +206,7 @@ public function testPostTypeLabelsAreCorrect(): void { 'item_updated' => 'FAQ updated.', 'item_link' => 'FAQ Link', 'item_link_description' => 'A link to a FAQ.', + 'item_trashed' => 'FAQ trashed.', ), $faq->labels ); $post = get_post_type_object( 'post' );