Ticket #33944: 33944.2.patch
| File 33944.2.patch, 1.5 KB (added by , 11 years ago) |
|---|
-
src/wp-includes/widgets/class-wp-nav-menu-widget.php
49 49 * Filter the arguments for the Custom Menu widget. 50 50 * 51 51 * @since 4.2.0 52 * @since 4.4.0 Added `$instance` and `$this` parameters. 52 53 * 53 * @param array $nav_menu_args {54 * @param array $nav_menu_args { 54 55 * An array of arguments passed to wp_nav_menu() to retrieve a custom menu. 55 56 * 56 57 * @type callback|bool $fallback_cb Callback to fire if the menu doesn't exist. Default empty. 57 58 * @type mixed $menu Menu ID, slug, or name. 58 59 * } 59 * @param stdClass $nav_menu Nav menu object for the current menu. 60 * @param array $args Display arguments for the current widget. 60 * @param stdClass $nav_menu Nav menu object for the current menu. 61 * @param array $args Display arguments for the current widget. 62 * @param array $instance Array of settings for the current widget. 63 * @param WP_Nav_Menu_Widget $this The nav menu widget instance. 61 64 */ 62 wp_nav_menu( apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args ) );65 wp_nav_menu( apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args, $instance, $this ) ); 63 66 64 67 echo $args['after_widget']; 65 68 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)