Changeset 31325 for trunk/src/wp-includes/default-widgets.php
- Timestamp:
- 02/03/2015 02:55:21 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-widgets.php
r31241 r31325 1345 1345 echo $args['before_title'] . $instance['title'] . $args['after_title']; 1346 1346 1347 wp_nav_menu( array( 'fallback_cb' => '', 'menu' => $nav_menu ) ); 1347 $nav_menu_args = array( 1348 'fallback_cb' => '', 1349 'menu' => $nav_menu 1350 ); 1351 1352 /** 1353 * Filter the arguments for the Custom Menu widget. 1354 * 1355 * @since 4.2.0 1356 * 1357 * @param array $nav_menu_args { 1358 * An array of arguments passed to wp_nav_menu() to retrieve a custom menu. 1359 * 1360 * @type callback|bool $fallback_cb Callback to fire if the menu doesn't exist. Default empty. 1361 * @type mixed $menu Menu ID, slug, or name. 1362 * } 1363 * @param stdClass $nav_menu Nav menu object for the current menu. 1364 * @param array $args Display arguments for the current widget. 1365 */ 1366 wp_nav_menu( apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args ) ); 1348 1367 1349 1368 echo $args['after_widget'];
Note: See TracChangeset
for help on using the changeset viewer.