Skip to content

Commit

Permalink
Rename Add new post_type to Add Item
Browse files Browse the repository at this point in the history
  • Loading branch information
thisissandip committed Jul 16, 2021
1 parent a3fcc94 commit da70034
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class PostPublishPanelPostpublish extends Component {
const { children, isScheduled, post, postType } = this.props;
const postLabel = get( postType, [ 'labels', 'singular_name' ] );
const viewPostLabel = get( postType, [ 'labels', 'view_item' ] );
const addNewPostLabel = get( postType, [ 'labels', 'add_new_item' ] );
const link =
post.status === 'future' ? getFuturePostUrl( post ) : post.link;
const addLink = addQueryArgs( 'post-new.php', {
Expand Down Expand Up @@ -149,7 +148,7 @@ class PostPublishPanelPostpublish extends Component {
</Button>
) }
<Button variant="secondary" href={ addLink }>
{ addNewPostLabel }
{ __( 'Add Item' ) }
</Button>
</div>
</PanelBody>
Expand Down

0 comments on commit da70034

Please sign in to comment.