-
Notifications
You must be signed in to change notification settings - Fork 3.2k
docs: Add missing parameter descriptions to docblocks in some file #10570
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
docs: Add missing parameter descriptions to docblocks in some file #10570
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 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. |
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. |
Co-authored-by: Huzaifa Al Mesbah <huzaifah4m@gmail.com>
Co-authored-by: Weston Ruter <westonruter@gmail.com>
|
Hi @westonruter, I've made the changes you suggested. Thanks for your help! |
| * @param string $param | ||
| * @param bool $required | ||
| * @return mixed | ||
| * @param string $param The parameter name to retrieve. | ||
| * @param bool $required Whether the parameter is required. Default false. | ||
| * @return string|bool|null|never The parameter value or true if found, null otherwise. The function exits when a required param is missing. |
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.
FYI: This phpdoc was supplied in eefa4e8 so I'll fix the merge conflict to defer to what is now in trunk.
…into fix/docblock-missing-param-descriptions
…ore_upgrade()`. Developed in #10570 Follow-up to [61512], [32642], [32654]. Props rejaulalomkhan, westonruter, huzaifaalmesbah. See #64224. git-svn-id: https://develop.svn.wordpress.org/trunk@61520 602fd350-edb4-49c9-b593-d223f7449a82
…ore_upgrade()`. Developed in WordPress/wordpress-develop#10570 Follow-up to [61512], [32642], [32654]. Props rejaulalomkhan, westonruter, huzaifaalmesbah. See #64224. Built from https://develop.svn.wordpress.org/trunk@61520 git-svn-id: http://core.svn.wordpress.org/trunk@60831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Description
This PR improves inline documentation in
wp-adminfiles by adding missing parameter descriptions to function docblocks.Changes
@paramdescriptions for functions missing themwp_load_press_this()functionwp_nav_menu_max_depth()Files Modified
wp-admin/install.phpwp-admin/nav-menus.phpwp-admin/update-core.phpwp-admin/includes/ajax-actions.phpwp-admin/includes/class-wp-importer.phpTesting
Ticket: https://core.trac.wordpress.org/ticket/64224