Skip to content

Commit

Permalink
Update admin menu item label
Browse files Browse the repository at this point in the history
Changes the “Add new” label to include the noun, matching the new behavior in WordPress 6.4
  • Loading branch information
swissspidy committed Nov 27, 2023
1 parent 405b438 commit 8fd7e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/Page_Template_Post_Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected function get_args(): array {
'labels' => [
'name' => _x( 'Page Templates', 'post type general name', 'web-stories' ),
'singular_name' => _x( 'Page Template', 'post type singular name', 'web-stories' ),
'add_new' => _x( 'Add New', 'page template', 'web-stories' ),
'add_new' => __( 'Add New Page Template', 'web-stories' ),
'add_new_item' => __( 'Add New Page Template', 'web-stories' ),
'edit_item' => __( 'Edit Page Template', 'web-stories' ),
'new_item' => __( 'New Page Template', 'web-stories' ),
Expand Down
2 changes: 1 addition & 1 deletion includes/Story_Post_Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ protected function get_args(): array {
'labels' => [
'name' => _x( 'Stories', 'post type general name', 'web-stories' ),
'singular_name' => _x( 'Story', 'post type singular name', 'web-stories' ),
'add_new' => _x( 'Add New', 'story', 'web-stories' ),
'add_new' => __( 'Add New Story', 'web-stories' ),
'add_new_item' => __( 'Add New Story', 'web-stories' ),
'edit_item' => __( 'Edit Story', 'web-stories' ),
'new_item' => __( 'New Story', 'web-stories' ),
Expand Down

0 comments on commit 8fd7e9d

Please sign in to comment.