Make WordPress Core

Changeset 51955


Ignore:
Timestamp:
10/29/2021 11:11:32 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Miscellaneous docblock improvements.

See #53399

Location:
trunk/src
Files:
6 edited

Legend:

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

    r51266 r51955  
    12791279
    12801280/**
    1281  * Add a top-level menu page.
     1281 * Adds a top-level menu page.
    12821282 *
    12831283 * This function takes a capability which will be used to determine whether
     
    13511351
    13521352/**
    1353  * Add a submenu page.
     1353 * Adds a submenu page.
    13541354 *
    13551355 * This function takes a capability which will be used to determine whether
     
    14751475
    14761476/**
    1477  * Add submenu page to the Tools main menu.
     1477 * Adds a submenu page to the Tools main menu.
    14781478 *
    14791479 * This function takes a capability which will be used to determine whether
     
    14991499
    15001500/**
    1501  * Add submenu page to the Settings main menu.
     1501 * Adds a submenu page to the Settings main menu.
    15021502 *
    15031503 * This function takes a capability which will be used to determine whether
     
    15231523
    15241524/**
    1525  * Add submenu page to the Appearance main menu.
     1525 * Adds a submenu page to the Appearance main menu.
    15261526 *
    15271527 * This function takes a capability which will be used to determine whether
     
    15471547
    15481548/**
    1549  * Add submenu page to the Plugins main menu.
     1549 * Adds a submenu page to the Plugins main menu.
    15501550 *
    15511551 * This function takes a capability which will be used to determine whether
     
    15711571
    15721572/**
    1573  * Add submenu page to the Users/Profile main menu.
     1573 * Adds a submenu page to the Users/Profile main menu.
    15741574 *
    15751575 * This function takes a capability which will be used to determine whether
     
    16001600
    16011601/**
    1602  * Add submenu page to the Dashboard main menu.
     1602 * Adds a submenu page to the Dashboard main menu.
    16031603 *
    16041604 * This function takes a capability which will be used to determine whether
     
    16241624
    16251625/**
    1626  * Add submenu page to the Posts main menu.
     1626 * Adds a submenu page to the Posts main menu.
    16271627 *
    16281628 * This function takes a capability which will be used to determine whether
     
    16481648
    16491649/**
    1650  * Add submenu page to the Media main menu.
     1650 * Adds a submenu page to the Media main menu.
    16511651 *
    16521652 * This function takes a capability which will be used to determine whether
     
    16721672
    16731673/**
    1674  * Add submenu page to the Links main menu.
     1674 * Adds a submenu page to the Links main menu.
    16751675 *
    16761676 * This function takes a capability which will be used to determine whether
     
    16961696
    16971697/**
    1698  * Add submenu page to the Pages main menu.
     1698 * Adds a submenu page to the Pages main menu.
    16991699 *
    17001700 * This function takes a capability which will be used to determine whether
     
    17201720
    17211721/**
    1722  * Add submenu page to the Comments main menu.
     1722 * Adds a submenu page to the Comments main menu.
    17231723 *
    17241724 * This function takes a capability which will be used to determine whether
     
    17441744
    17451745/**
    1746  * Remove a top-level admin menu.
     1746 * Removes a top-level admin menu.
     1747 *
     1748 * Example usage:
     1749 *
     1750 *  - `remove_menu_page( 'tools.php' )`
     1751 *  - `remove_menu_page( 'plugin_menu_slug' )`
    17471752 *
    17481753 * @since 3.1.0
     
    17671772
    17681773/**
    1769  * Remove an admin submenu.
     1774 * Removes an admin submenu.
     1775 *
     1776 * Example usage:
     1777 *
     1778 *  - `remove_submenu_page( 'themes.php', 'nav-menus.php' )`
     1779 *  - `remove_submenu_page( 'tools.php', 'plugin_submenu_slug' )`
     1780 *  - `remove_submenu_page( 'plugin_menu_slug', 'plugin_submenu_slug' )`
    17701781 *
    17711782 * @since 3.1.0
     
    17951806
    17961807/**
    1797  * Get the URL to access a particular menu page based on the slug it was registered with.
     1808 * Gets the URL to access a particular menu page based on the slug it was registered with.
    17981809 *
    17991810 * If the slug hasn't been registered properly, no URL will be returned.
  • trunk/src/wp-admin/includes/upgrade.php

    r51917 r51955  
    18791879 * @ignore
    18801880 * @since 3.7.2
    1881  * @since 3.8.0
    18821881 *
    18831882 * @global int $wp_current_db_version The old (current) database version.
  • trunk/src/wp-includes/cron.php

    r51916 r51955  
    10411041 * @since 5.4.0 The 'weekly' schedule was added.
    10421042 *
    1043  * @return array
     1043 * @return array[]
    10441044 */
    10451045function wp_get_schedules() {
     
    10681068     * @since 2.1.0
    10691069     *
    1070      * @param array $new_schedules An array of non-default cron schedules. Default empty.
     1070     * @param array[] $new_schedules An array of non-default cron schedule arrays. Default empty.
    10711071     */
    10721072    return array_merge( apply_filters( 'cron_schedules', array() ), $schedules );
  • trunk/src/wp-includes/formatting.php

    r51918 r51955  
    35403540 * Given a date in UTC or GMT timezone, returns that date in the timezone of the site.
    35413541 *
    3542  * Requires and returns a date in the Y-m-d H:i:s format.
    3543  * Return format can be overridden using the $format parameter.
     3542 * Requires a date in the Y-m-d H:i:s format.
     3543 * Default return format of 'Y-m-d H:i:s' can be overridden using the `$format` parameter.
    35443544 *
    35453545 * @since 1.2.0
  • trunk/src/wp-includes/theme.php

    r51791 r51955  
    30743074 *                                    Valid values are 'string', 'boolean', 'integer',
    30753075 *                                    'number', 'array', and 'object'. Defaults to 'boolean'.
    3076  *     @type boolean    $variadic     Does this feature utilize the variadic support
     3076 *     @type bool       $variadic     Does this feature utilize the variadic support
    30773077 *                                    of add_theme_support(), or are all arguments specified
    30783078 *                                    as the second parameter. Must be used with the "array" type.
  • trunk/src/wp-login.php

    r51829 r51955  
    435435 * Possible hook names include:
    436436 *
    437  *  - 'login_form_checkemail'
    438  *  - 'login_form_confirm_admin_email'
    439  *  - 'login_form_confirmaction'
    440  *  - 'login_form_entered_recovery_mode'
    441  *  - 'login_form_login'
    442  *  - 'login_form_logout'
    443  *  - 'login_form_lostpassword'
    444  *  - 'login_form_postpass'
    445  *  - 'login_form_register'
    446  *  - 'login_form_resetpass'
    447  *  - 'login_form_retrievepassword'
    448  *  - 'login_form_rp'
     437 *  - `login_form_checkemail`
     438 *  - `login_form_confirm_admin_email`
     439 *  - `login_form_confirmaction`
     440 *  - `login_form_entered_recovery_mode`
     441 *  - `login_form_login`
     442 *  - `login_form_logout`
     443 *  - `login_form_lostpassword`
     444 *  - `login_form_postpass`
     445 *  - `login_form_register`
     446 *  - `login_form_resetpass`
     447 *  - `login_form_retrievepassword`
     448 *  - `login_form_rp`
    449449 *
    450450 * @since 2.8.0
Note: See TracChangeset for help on using the changeset viewer.