Make WordPress Core

Ticket #9780: 9780.diff

File 9780.diff, 2.1 KB (added by Denis-de-Bernardy, 16 years ago)
  • wp-includes/default-widgets.php

     
    2929                if ( $sortby == 'menu_order' )
    3030                        $sortby = 'menu_order, post_title';
    3131
    32                 $out = wp_list_pages( array('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) ) );
    3333
    3434                if ( !empty( $out ) ) {
    3535                        echo $before_widget;
     
    212212
    213213                if ( $d ) {
    214214?>
    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>
    216216<?php
    217217                } else {
    218218?>
    219219                <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))); ?>
    221221                </ul>
    222222<?php
    223223                }
     
    426426
    427427                if ( $d ) {
    428428                        $cat_args['show_option_none'] = __('Select Category');
    429                         wp_dropdown_categories($cat_args);
     429                        wp_dropdown_categories(apply_filters('widget_categories_args', $cat_args));
    430430?>
    431431
    432432<script type='text/javascript'>
     
    447447                <ul>
    448448<?php
    449449                $cat_args['title_li'] = '';
    450                 wp_list_categories($cat_args);
     450                wp_list_categories(apply_filters('widget_categories_args', $cat_args));
    451451?>
    452452                </ul>
    453453<?php
     
    980980                if ( $title )
    981981                        echo $before_title . $title . $after_title;
    982982                echo '<div>';
    983                 wp_tag_cloud();
     983                wp_tag_cloud(apply_filters('widget_tag_cloud_args', array()));
    984984                echo "</div>\n";
    985985                echo $after_widget;
    986986        }