-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace "Add new post" link text with more meaningful Label (v2) (#62277
) * Replace "Add new post" link text with more meaningful 'add_new_item' label of current post type. * Avoid rendering the CreateNewPostLink component itself if postType is falsy * Follow recommendation to use useSelect hook, instead of using select() directly in React components Co-authored-by: carstingaxion <carstenbach@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
- Loading branch information
1 parent
7b4d386
commit acbfacf
Showing
2 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
20 changes: 12 additions & 8 deletions
20
packages/block-library/src/query/edit/inspector-controls/create-new-post-link.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters