Make WordPress Core

Ticket #35456: 35456.patch

File 35456.patch, 2.1 KB (added by sebastian.pisula, 10 years ago)
  • wp-includes/widgets/class-wp-widget-archives.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    5959                         * Filter the arguments for the Archives widget drop-down.
    6060                         *
    6161                         * @since 2.8.0
     62                         * @since 4.5.0 Added new params $widget_args, $instance and $widget_archive
    6263                         *
    6364                         * @see wp_get_archives()
    6465                         *
    6566                         * @param array $args An array of Archives widget drop-down arguments.
     67                         * @param array $widget_args Array of arguments including 'before_title', 'after_title',
     68                         *                           'before_widget', and 'after_widget'.
     69                         * @param array $instance Settings for the current Archives widget instance.
     70                         * @param WP_Widget_Archives $widget_archive Object Current Widget
    6671                         */
    6772                        $dropdown_args = apply_filters( 'widget_archives_dropdown_args', array(
    6873                                'type'            => 'monthly',
    6974                                'format'          => 'option',
    7075                                'show_post_count' => $c
    71                         ) );
     76                        ), $args, $instance, $this );
    7277
    7378                        switch ( $dropdown_args['type'] ) {
    7479                                case 'yearly':
     
    100105                 * Filter the arguments for the Archives widget.
    101106                 *
    102107                 * @since 2.8.0
     108                 * @since 4.5.0 Added new params $widget_args, $instance and $widget_archive
    103109                 *
    104110                 * @see wp_get_archives()
    105111                 *
    106112                 * @param array $args An array of Archives option arguments.
     113                 * @param array $widget_args Array of arguments including 'before_title', 'after_title',
     114                 *                           'before_widget', and 'after_widget'.
     115                 * @param array $instance Settings for the current Archives widget instance.
     116                 * @param WP_Widget_Archives $widget_archive Object Current Widget
    107117                 */
    108118                wp_get_archives( apply_filters( 'widget_archives_args', array(
    109119                        'type'            => 'monthly',
    110120                        'show_post_count' => $c
    111                 ) ) );
     121                ), $args, $instance, $this ) );
    112122                ?>
    113123                </ul>
    114124                <?php