Make WordPress Core

Ticket #13370: nav-menu-template.php-docs.patch

File nav-menu-template.php-docs.patch, 1.6 KB (added by jorbin, 16 years ago)
  • wp-includes/nav-menu-template.php

     
    170170 *
    171171 * Optional $args contents:
    172172 *
    173  * menu - The menu id. Defaults to blank.
    174  * slug - The menu slug. Defaults to blank.
     173 * menu - The menu that is desired.  Accepts (matching in order) id, slug, name. Defaults to blank.
    175174 * menu_class - CSS class to use for the ul container of the menu list. Defaults to 'menu'.
    176175 * container - Whether to wrap the ul, and what to wrap it with. Defaults to 'div'.
     176 * conatiner_class - the class that is applied to the container. Defaults to blank.
    177177 * fallback_cb - If the menu doesn't exists, a callback function will fire. Defaults to 'wp_page_menu'.
    178178 * before - Text before the link text.
    179179 * after - Text after the link text.
    180180 * link_before - Text before the link.
    181181 * link_after - Text after the link.
    182182 * echo - Whether to echo the menu or return it. Defaults to echo.
     183 * depth - how many levels of the hierarchy are to be included.  0 means all.  Defaults to 0.
    183184 *
     185 *
    184186 * @todo show_home - If you set this argument, then it will display the link to the home page. The show_home argument really just needs to be set to the value of the text of the link.
    185187 *
    186188 * @since 3.0.0
     
    199201        // Get the nav menu
    200202        $menu = wp_get_nav_menu_object( $args->menu );
    201203
    202         // If we couldn't find a menu based off the name, id or slug,
     204        // If we couldn't find a menu based off the menu argument
    203205        // get the first menu that has items.
    204206        if ( ! $menu ) {
    205207                $menus = wp_get_nav_menus();