-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable an optional namespace parameter for hasAction & hasFilter #15362
Conversation
There's a merge conflict to be resolved as well. |
Co-Authored-By: Pascal Birchler <[email protected]>
# Conflicts: # packages/hooks/src/test/index.test.js
ea38257
to
0ceb598
Compare
@gziolo This could use a review if you have time. I'm not sure why there are failing checks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left only nitpicks :)
It looks good and I think we should also update API Usage section in README file:
https://github.com/WordPress/gutenberg/tree/master/packages/hooks#api-usage
Co-Authored-By: Grzegorz (Greg) Ziółkowski <[email protected]>
@gziolo Thanks for the review. I will work on your feedback and update API Usage section in README. |
@gziolo I addressed your feedback and this should be ready for a merge once all tests pass. |
Co-Authored-By: Daniel Richards <[email protected]>
Let's get this PR in, @adamsilverstein thanks for all iterations applied. |
…dPress#15362) * from https://github.com/WordPress/packages/pull/106/files * Update packages/hooks/src/createHasHook.js Co-Authored-By: Pascal Birchler <[email protected]> * clean up docblock spacing * add changelog entry for new namespace parameter for hasAction & hasFilter * Update packages/hooks/CHANGELOG.md Co-Authored-By: Grzegorz (Greg) Ziółkowski <[email protected]> * break out tests * update readme * Apply suggestions from code review Co-Authored-By: Daniel Richards <[email protected]> * Update CHANGELOG.md
) * from https://github.com/WordPress/packages/pull/106/files * Update packages/hooks/src/createHasHook.js Co-Authored-By: Pascal Birchler <[email protected]> * clean up docblock spacing * add changelog entry for new namespace parameter for hasAction & hasFilter * Update packages/hooks/CHANGELOG.md Co-Authored-By: Grzegorz (Greg) Ziółkowski <[email protected]> * break out tests * update readme * Apply suggestions from code review Co-Authored-By: Daniel Richards <[email protected]> * Update CHANGELOG.md
) * from https://github.com/WordPress/packages/pull/106/files * Update packages/hooks/src/createHasHook.js Co-Authored-By: Pascal Birchler <[email protected]> * clean up docblock spacing * add changelog entry for new namespace parameter for hasAction & hasFilter * Update packages/hooks/CHANGELOG.md Co-Authored-By: Grzegorz (Greg) Ziółkowski <[email protected]> * break out tests * update readme * Apply suggestions from code review Co-Authored-By: Daniel Richards <[email protected]> * Update CHANGELOG.md
Description
Core originally in from WordPress/packages#106
Fixes #7819
How has this been tested?
hasfilter/hasAction
and verify results correctly.Types of changes
hasfilter
&hasAction
has_action
has_filter
which include this second parameterChecklist: