Changeset 13415
- Timestamp:
- 02/25/2010 10:00:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/nav-menu-template.php
r13401 r13415 9 9 */ 10 10 function wp_nav_menu( $args = array() ) { 11 $defaults = array('id' => '', 'slug' => '', 'menu_class' => 'menu', 'format' => 'div' );11 $defaults = array('id' => '', 'slug' => '', 'menu_class' => 'menu', 'format' => 'div', 'fallback_cb' => 'wp_page_menu'); 12 12 $args = wp_parse_args($args, $defaults); 13 13 $args = (object) $args; … … 29 29 30 30 if ( !$menu || is_wp_error($menu) ) 31 return wp_page_menu($args );31 return call_user_func($args->fallback_cb, $args ); 32 32 33 33 if ( 'div' == $args->format )
Note: See TracChangeset
for help on using the changeset viewer.