Ticket #20788: 20788.patch

File 20788.patch, 965 bytes (added by SergeyBiryukov, 12 months ago)
  • wp-includes/default-widgets.php

     
    107107                $limit = isset( $instance['limit'] ) ? $instance['limit'] : -1; 
    108108 
    109109                $before_widget = preg_replace('/id="[^"]*"/','id="%id"', $before_widget); 
    110                 wp_list_bookmarks(apply_filters('widget_links_args', array( 
     110                wp_list_bookmarks( apply_filters( 'widget_links_args', array( 
    111111                        'title_before' => $before_title, 'title_after' => $after_title, 
    112112                        'category_before' => $before_widget, 'category_after' => $after_widget, 
    113113                        'show_images' => $show_images, 'show_description' => $show_description, 
     
    115115                        'category' => $category, 'class' => 'linkcat widget', 
    116116                        'orderby' => $orderby, 'order' => $order, 
    117117                        'limit' => $limit, 
    118                 ))); 
     118                ), $instance ) ); 
    119119        } 
    120120 
    121121        function update( $new_instance, $old_instance ) {