Repository navigation
Icons Registry: Extend search to include label and keywords fields - #76481
manhar-addweb wants to merge 1 commit into
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. At least one To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @manhar-addweb! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
a800b50 to
e7247eb
Compare
e7247eb to
e2798f0
Compare
|
Thank you for the PR, @manhar-addweb. This was actually addressed in #75878, which added search by label and was merged into trunk yesterday. It might be worth checking the latest trunk to see if the issue is already resolved. |
Thanks for the review! Closing this in favor of #75878. |
|
Thanks @im3dabasia I checked #75878 - it covers label search only. This PR also adds keywords field search as mentioned I noticed the manifest.php does not have keywords yet.
Should I proceed with this? |
@manhar-addweb Our team would really appreciate it if you added keyword support. Thank you! 😁👏 I know it's been a few months, so if you're not looking at this PR anymore, I'm happy to implement it. |
|
Closing this as the keyword-based search has been supported in #82367. @manhar-addweb, I appreciate your effort! |
|
Thank you so much, @t-hamano . I really appreciate your kind words. I’d be happy to contribute more to the project and continue helping with the search-related improvements. If there’s an opportunity to be part of the team, I’d be glad to contribute and collaborate with everyone. |
What?
Extends
get_registered_icons()inWP_Icons_Registryto searchagainst
labelandkeywordsfields in addition toname.Why?
Currently the search parameter only matches icon names.
Part of SVG Icon API iteration for WordPress 7.1.
Closes #75715
How?
Updated the search logic in
get_registered_icons()to checkname, label, and keywords fields using stripos().
Testing Instructions
Updated the search logic in
get_registered_icons()to checkname, label, and keywords fields using stripos().
Testing Instructions for Keyboard
Screenshots or screencast
Use of AI Tools