WordPress.org

Make WordPress Core

Ticket #22364: 22364.patch

File 22364.patch, 562 bytes (added by wpsmith, 18 months ago)
  • wp-includes/default-widgets.php

     
    11121112                if ( !empty($instance['title']) ) 
    11131113                        echo $args['before_title'] . $instance['title'] . $args['after_title']; 
    11141114 
    1115                 wp_nav_menu( array( 'fallback_cb' => '', 'menu' => $nav_menu ) ); 
     1115                wp_nav_menu( array( 'fallback_cb' => '', 'menu' => $nav_menu, 'theme_location' => $args['id'], ) ); 
    11161116 
    11171117                echo $args['after_widget']; 
    11181118        }