Make WordPress Core


Ignore:
Timestamp:
11/08/2021 10:47:55 AM (4 years ago)
Author:
johnbillion
Message:

Docs: Various docblock improvements and corrections.

See #53399

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/deprecated.php

    r51827 r52035  
    164164 * @see register_setting()
    165165 *
    166  * @param string $option_group A settings group name. Should correspond to an allowed option key name.
    167  *                             Default allowed option key names include 'general', 'discussion', 'media',
    168  *                             'reading', 'writing', and 'options'.
    169  * @param string $option_name The name of an option to sanitize and save.
    170  * @param callable $sanitize_callback A callback function that sanitizes the option's value.
     166 * @param string   $option_group      A settings group name. Should correspond to an allowed option key name.
     167 *                                    Default allowed option key names include 'general', 'discussion', 'media',
     168 *                                    'reading', 'writing', and 'options'.
     169 * @param string   $option_name      The name of an option to sanitize and save.
     170 * @param callable $sanitize_callback Optional. A callback function that sanitizes the option's value.
    171171 */
    172172function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
     
    182182 * @see unregister_setting()
    183183 *
    184  * @param string $option_group
    185  * @param string $option_name
    186  * @param callable $sanitize_callback
     184 * @param string   $option_group      The settings group name used during registration.
     185 * @param string   $option_name       The name of the option to unregister.
     186 * @param callable $sanitize_callback Optional. Deprecated.
    187187 */
    188188function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
     
    14271427 * @param string   $capability The capability required for this menu to be displayed to the user.
    14281428 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
    1429  * @param callable $function   The function to be called to output the content for this page.
    1430  * @param string   $icon_url   The url to the icon to be used for this menu.
     1429 * @param callable $function   Optional. The function to be called to output the content for this page.
     1430 * @param string   $icon_url   Optional. The URL to the icon to be used for this menu.
    14311431 * @return string The resulting page's hook_suffix.
    14321432 */
     
    14601460 * @param string   $capability The capability required for this menu to be displayed to the user.
    14611461 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
    1462  * @param callable $function   The function to be called to output the content for this page.
    1463  * @param string   $icon_url   The url to the icon to be used for this menu.
     1462 * @param callable $function   Optional. The function to be called to output the content for this page.
     1463 * @param string   $icon_url   Optional. The URL to the icon to be used for this menu.
    14641464 * @return string The resulting page's hook_suffix.
    14651465 */
Note: See TracChangeset for help on using the changeset viewer.