Using addQueryArgs to generate Manage All Reusable Blocks link#10065
Using addQueryArgs to generate Manage All Reusable Blocks link#10065SofiaSousa wants to merge 8 commits intoWordPress:masterfrom
Conversation
|
What's the benefit for using |
|
To be coherent. Then in our case, we override |
|
I think it's fine to land it. @SofiaSousa can you refresh this PR with the latest changes from In other places, I also see |
# Conflicts: # packages/edit-post/src/components/header/more-menu/index.js # packages/editor/src/components/inserter/menu.js
|
@gziolo PR has the latest changes from the I did a little search for Otherwise, I think we should replace all calls of |
I'm confused as much as you are, good finding :)
I think |
gziolo
left a comment
There was a problem hiding this comment.
Other than mentioned lock file changes, these changes look good. Thanks for refreshing.
| "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", | ||
| "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", | ||
| "dev": true, | ||
| "optional": true, |
There was a problem hiding this comment.
I see unrelated lock file changes in this PR. My bet is that it is because this file was regenerated using npm 6.7 which introduced some changes in a way optional flag is handled. Can you try to run npm install with the latest version of npm?
There was a problem hiding this comment.
Which version did you mean? I had [email protected] when those "optional": true, appeared. Tried to update to the latest (npm install -g npm@latest) but the latest version is [email protected].
There was a problem hiding this comment.
My bad, I misunderstood your comment.
gziolo
left a comment
There was a problem hiding this comment.
I opened #13653 to fix the issue with the lock file. I tested those changes and they work as expected. Thank you for opening this PR. I will land your changes from my branch, but technically it will still get merged under your name :)
Description
Using
addQueryArgsmethod from@wordpress/urlinstead of hand coding 'Manage All Reusable Blocks' link.How has this been tested?
edit.php?post_type=wp_block.edit.php?post_type=wp_block.Screenshots
Types of changes
Reuse an existing method.
Checklist: