Posts: Add disabled argument to wp_dropdown_categories() and wp_dropdown_pages()#12145
Posts: Add disabled argument to wp_dropdown_categories() and wp_dropdown_pages()#12145SainathPoojary wants to merge 2 commits into
disabled argument to wp_dropdown_categories() and wp_dropdown_pages()#12145Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
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 Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
This PR adds a
disabledboolean argument to bothwp_dropdown_categories()andwp_dropdown_pages(). When set totrue, the generated<select>dropdowns are rendered with the HTML5disabledattribute (<select disabled>).Trac ticket: #20810