Make WordPress Core


Ignore:
Timestamp:
07/01/2015 07:07:20 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Customizer: Avoid PHP notices after [32806].

props adamsilverstein, westonruter.
fixes #32781.

File:
1 edited

Legend:

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

    r32803 r33035  
    309309     */
    310310    if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) )
    311         && $args->fallback_cb && is_callable( $args->fallback_cb ) )
     311        && isset( $args->fallback_cb ) && $args->fallback_cb && is_callable( $args->fallback_cb ) )
    312312            return call_user_func( $args->fallback_cb, (array) $args );
    313313
Note: See TracChangeset for help on using the changeset viewer.