WordPress.org

Make WordPress Core

Changeset 14604


Ignore:
Timestamp:
05/13/2010 06:47:35 PM (8 years ago)
Author:
nacin
Message:

More inline doc clarifications for wp_nav_menu. fixes #13370, props jorbin.

File:
1 edited

Legend:

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

    r14600 r14604  
    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.
     
    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.
     184 *
    183185 *
    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.
     
    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 ) {
Note: See TracChangeset for help on using the changeset viewer.