WordPress.org

Make WordPress Core

Changeset 37752


Ignore:
Timestamp:
06/20/2016 08:25:16 AM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Improve the summaries and return descriptions for get_registered_nav_menus() and get_nav_menu_locations().

Props rabmalin for the initial patch.
Fixes #37106.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu.php

    r37518 r37752  
    127127}
    128128/**
    129  * Returns all registered navigation menu locations in a theme.
     129 * Retrieves all registered navigation menu locations in a theme.
    130130 *
    131131 * @since 3.0.0
     
    133133 * @global array $_wp_registered_nav_menus
    134134 *
    135  * @return array
     135 * @return array Registered navigation menu locations. If none are registered, an empty array.
    136136 */
    137137function get_registered_nav_menus() {
     
    143143
    144144/**
    145  * Returns an array with the registered navigation menu locations and the menu assigned to it
    146  *
    147  * @since 3.0.0
    148  * @return array
     145 * Retrieves all registered navigation menu locations and the menus assigned to them.
     146 *
     147 * @since 3.0.0
     148 *
     149 * @return array Registered navigation menu locations and the menus assigned them.
     150 *               If none are registered, an empty array.
    149151 */
    150152
Note: See TracChangeset for help on using the changeset viewer.