Make WordPress Core

Changeset 50828


Ignore:
Timestamp:
05/07/2021 08:14:22 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Miscellaneous docblock updates.

See #52628

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-automatic-upgrader-skin.php

    r49596 r50828  
    5757     * @since 3.7.0
    5858     *
    59      * @return array Messages during an upgrade.
     59     * @return string[] Messages during an upgrade.
    6060     */
    6161    public function get_upgrade_messages() {
  • trunk/src/wp-includes/nav-menu.php

    r50558 r50828  
    8686 * @global array $_wp_registered_nav_menus
    8787 *
    88  * @param array $locations Associative array of menu location identifiers (like a slug) and descriptive text.
     88 * @param string[] $locations Associative array of menu location identifiers (like a slug) and descriptive text.
    8989 */
    9090function register_nav_menus( $locations = array() ) {
     
    144144 * @global array $_wp_registered_nav_menus
    145145 *
    146  * @return array Registered navigation menu locations. If none are registered, an empty array.
     146 * @return string[] Associative array of egistered navigation menu descriptions keyed
     147 *                  by their location. If none are registered, an empty array.
    147148 */
    148149function get_registered_nav_menus() {
     
    159160 * @since 3.0.0
    160161 *
    161  * @return array Registered navigation menu locations and the menus assigned them.
    162  *               If none are registered, an empty array.
    163  */
    164 
     162 * @return int[] Associative array of egistered navigation menu IDs keyed by their
     163 *               location name. If none are registered, an empty array.
     164 */
    165165function get_nav_menu_locations() {
    166166    $locations = get_theme_mod( 'nav_menu_locations' );
  • trunk/src/wp-includes/taxonomy.php

    r50641 r50828  
    27702770     *
    27712771     * @param int    $object_id  Object ID.
    2772      * @param array  $terms      An array of object terms.
     2772     * @param array  $terms      An array of object term IDs or slugs.
    27732773     * @param array  $tt_ids     An array of term taxonomy IDs.
    27742774     * @param string $taxonomy   Taxonomy slug.
  • trunk/src/wp-signup.php

    r50032 r50828  
    230230 *
    231231 * @return array Contains the new site data and error messages.
     232 *               See wpmu_validate_blog_signup() for details.
    232233 */
    233234function validate_blog_form() {
     
    293294 *
    294295 * @return array Contains username, email, and error messages.
     296 *               See wpmu_validate_user_signup() for details.
    295297 */
    296298function validate_user_form() {
     
    862864 * @see get_available_languages()
    863865 *
    864  * @return array List of available languages.
     866 * @return string[] Array of available language codes. Language codes are formed by
     867 *                  stripping the .mo extension from the language file names.
    865868 */
    866869function signup_get_available_languages() {
     
    875878     * @since 4.4.0
    876879     *
    877      * @param array $available_languages Available languages.
     880     * @param string[] $languages Array of available language codes. Language codes are formed by
     881     *                            stripping the .mo extension from the language file names.
    878882     */
    879883    $languages = (array) apply_filters( 'signup_get_available_languages', get_available_languages() );
Note: See TracChangeset for help on using the changeset viewer.