Ticket #13370: nav-menu-template.php-docs.patch
| File nav-menu-template.php-docs.patch, 1.6 KB (added by , 16 years ago) |
|---|
-
wp-includes/nav-menu-template.php
170 170 * 171 171 * Optional $args contents: 172 172 * 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. 175 174 * menu_class - CSS class to use for the ul container of the menu list. Defaults to 'menu'. 176 175 * 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. 177 177 * fallback_cb - If the menu doesn't exists, a callback function will fire. Defaults to 'wp_page_menu'. 178 178 * before - Text before the link text. 179 179 * after - Text after the link text. 180 180 * link_before - Text before the link. 181 181 * link_after - Text after the link. 182 182 * 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. 183 184 * 185 * 184 186 * @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. 185 187 * 186 188 * @since 3.0.0 … … 199 201 // Get the nav menu 200 202 $menu = wp_get_nav_menu_object( $args->menu ); 201 203 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 203 205 // get the first menu that has items. 204 206 if ( ! $menu ) { 205 207 $menus = wp_get_nav_menus();
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)