Changeset 24634 for trunk/wp-includes/nav-menu-template.php
- Timestamp:
- 07/10/2013 05:14:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/nav-menu-template.php
r23565 r24634 180 180 /* 181 181 * If no menu was found: 182 * - Fall back (if one was specified), or bail.182 * - Fall back (if one was specified), or bail. 183 183 * 184 184 * If no menu items were found: 185 * - Fall back, but only if no theme location was specified.185 * - Fall back, but only if no theme location was specified. 186 186 * - Otherwise, bail. 187 187 */ … … 190 190 return call_user_func( $args->fallback_cb, (array) $args ); 191 191 192 if ( ! $menu || is_wp_error( $menu ) || empty( $menu_items) )192 if ( ! $menu || is_wp_error( $menu ) ) 193 193 return false; 194 194 … … 239 239 $items = apply_filters( 'wp_nav_menu_items', $items, $args ); 240 240 $items = apply_filters( "wp_nav_menu_{$menu->slug}_items", $items, $args ); 241 242 // Don't print any markup if there are no items at this point. 243 if ( empty( $items ) ) 244 return false; 241 245 242 246 $nav_menu .= sprintf( $args->items_wrap, esc_attr( $wrap_id ), esc_attr( $wrap_class ), $items );
Note: See TracChangeset
for help on using the changeset viewer.