Ticket #9780: 9780.diff
File 9780.diff, 2.1 KB (added by , 16 years ago) |
---|
-
wp-includes/default-widgets.php
29 29 if ( $sortby == 'menu_order' ) 30 30 $sortby = 'menu_order, post_title'; 31 31 32 $out = wp_list_pages( a rray('title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude) );32 $out = wp_list_pages( apply_filters('widget_pages_args', array('title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude) ) ); 33 33 34 34 if ( !empty( $out ) ) { 35 35 echo $before_widget; … … 212 212 213 213 if ( $d ) { 214 214 ?> 215 <select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""><?php echo esc_attr(__('Select Month')); ?></option> <?php wp_get_archives( "type=monthly&format=option&show_post_count=$c"); ?> </select>215 <select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""><?php echo esc_attr(__('Select Month')); ?></option> <?php wp_get_archives(apply_filters('widget_archives_args', array('type' => 'monthly', 'format' => 'option', 'show_post_count' => $c))); ?> </select> 216 216 <?php 217 217 } else { 218 218 ?> 219 219 <ul> 220 <?php wp_get_archives( "type=monthly&show_post_count=$c"); ?>220 <?php wp_get_archives(apply_filters('widget_archives_args', array('type' => 'monthly', 'show_post_count' => $c))); ?> 221 221 </ul> 222 222 <?php 223 223 } … … 426 426 427 427 if ( $d ) { 428 428 $cat_args['show_option_none'] = __('Select Category'); 429 wp_dropdown_categories( $cat_args);429 wp_dropdown_categories(apply_filters('widget_categories_args', $cat_args)); 430 430 ?> 431 431 432 432 <script type='text/javascript'> … … 447 447 <ul> 448 448 <?php 449 449 $cat_args['title_li'] = ''; 450 wp_list_categories( $cat_args);450 wp_list_categories(apply_filters('widget_categories_args', $cat_args)); 451 451 ?> 452 452 </ul> 453 453 <?php … … 980 980 if ( $title ) 981 981 echo $before_title . $title . $after_title; 982 982 echo '<div>'; 983 wp_tag_cloud( );983 wp_tag_cloud(apply_filters('widget_tag_cloud_args', array())); 984 984 echo "</div>\n"; 985 985 echo $after_widget; 986 986 }