Changeset 11254 for trunk/wp-includes/default-widgets.php
- Timestamp:
- 05/10/2009 09:14:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-widgets.php
r11228 r11254 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 ) ) { … … 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_dropdown_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 … … 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_dropdown_args', $cat_args)); 430 430 ?> 431 431 … … 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> … … 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;
Note: See TracChangeset
for help on using the changeset viewer.