Ticket #29463: 29463.diff
File 29463.diff, 1.0 KB (added by , 10 years ago) |
---|
-
src/wp-includes/default-widgets.php
1323 1323 if ( !empty($instance['title']) ) 1324 1324 echo $args['before_title'] . $instance['title'] . $args['after_title']; 1325 1325 1326 wp_nav_menu( array( 'fallback_cb' => '', 'menu' => $nav_menu ) ); 1326 $nav_menu_args = array( 1327 'fallback_cb' => '', 1328 'menu' => $nav_menu 1329 ); 1327 1330 1331 /** 1332 * Filter the arguments for the Custom Menu widget. 1333 * 1334 * @since 4.1.0 1335 * 1336 * @param array $nav_menu_args An array of arguments passed to {@see wp_nav_menu()} to retrieve 1337 * a custom menu. 1338 * @param stdClass $nav_menu Nav menu object for the current menu. 1339 * @param array $args Display arguments for the current widget. 1340 */ 1341 wp_nav_menu( apply_filters( 'widget_nav_menu_args', $widget_nav_menu_args, $args ) ); 1342 1328 1343 echo $args['after_widget']; 1329 1344 } 1330 1345