Make WordPress Core


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

Docs: Miscellaneous docblock updates.

See #52628

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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' );
Note: See TracChangeset for help on using the changeset viewer.