Make WordPress Core

Ticket #29463: filter-wp_nav_menu-widgets.diff

File filter-wp_nav_menu-widgets.diff, 611 bytes (added by cyman, 10 years ago)
  • src/wp-includes/default-widgets.php

    diff --git src/wp-includes/default-widgets.php src/wp-includes/default-widgets.php
    index d54dbc7..6eac07a 100644
    class WP_Widget_Tag_Cloud extends WP_Widget { 
    13231323                if ( !empty($instance['title']) )
    13241324                        echo $args['before_title'] . $instance['title'] . $args['after_title'];
    13251325
    1326                 wp_nav_menu( array( 'fallback_cb' => '', 'menu' => $nav_menu ) );
     1326                wp_nav_menu( apply_filters( 'widget_nav_menu_args', array(
     1327                        'fallback_cb' => '',
     1328                        'menu'        => $nav_menu
     1329                ) ) );
    13271330
    13281331                echo $args['after_widget'];
    13291332        }