Ticket #38017: 38017.diff
File 38017.diff, 6.4 KB (added by , 9 years ago) |
---|
-
src/wp-includes/widgets/class-wp-widget-archives.php
67 67 * @see wp_get_archives() 68 68 * 69 69 * @param array $args An array of Archives widget drop-down arguments. 70 * @param array $instance Settings for the current Archives widget instance. 70 71 */ 71 72 $dropdown_args = apply_filters( 'widget_archives_dropdown_args', array( 72 73 'type' => 'monthly', 73 74 'format' => 'option', 74 75 'show_post_count' => $c 75 ) );76 ), $instance ); 76 77 77 78 switch ( $dropdown_args['type'] ) { 78 79 case 'yearly': … … 107 108 * 108 109 * @see wp_get_archives() 109 110 * 110 * @param array $args An array of Archives option arguments. 111 * @param array $args An array of Archives option arguments. 112 * @param array $instance Array of settings for the current widget. 111 113 */ 112 114 wp_get_archives( apply_filters( 'widget_archives_args', array( 113 115 'type' => 'monthly', 114 116 'show_post_count' => $c 115 ) ) );117 ), $instance ) ); 116 118 ?> 117 119 </ul> 118 120 <?php -
src/wp-includes/widgets/class-wp-widget-categories.php
79 79 * @see wp_dropdown_categories() 80 80 * 81 81 * @param array $cat_args An array of Categories widget drop-down arguments. 82 * @param array $instance Array of settings for the current widget. 82 83 */ 83 wp_dropdown_categories( apply_filters( 'widget_categories_dropdown_args', $cat_args ) );84 wp_dropdown_categories( apply_filters( 'widget_categories_dropdown_args', $cat_args, $instance ) ); 84 85 ?> 85 86 86 87 <script type='text/javascript'> … … 110 111 * @since 2.8.0 111 112 * 112 113 * @param array $cat_args An array of Categories widget options. 114 * @param array $instance Array of settings for the current widget. 113 115 */ 114 wp_list_categories( apply_filters( 'widget_categories_args', $cat_args ) );116 wp_list_categories( apply_filters( 'widget_categories_args', $cat_args, $instance ) ); 115 117 ?> 116 118 </ul> 117 119 <?php -
src/wp-includes/widgets/class-wp-widget-meta.php
64 64 * @since 3.6.0 65 65 * 66 66 * @param string $title_text Default title text for the WordPress.org link. 67 * @param array $instance Array of settings for the current widget. 67 68 */ 68 69 echo apply_filters( 'widget_meta_poweredby', sprintf( '<li><a href="%s" title="%s">%s</a></li>', 69 70 esc_url( __( 'https://wordpress.org/' ) ), 70 71 esc_attr__( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ), 71 72 _x( 'WordPress.org', 'meta widget link text' ) 72 ) );73 ), $instance ); 73 74 74 75 wp_meta(); 75 76 ?> -
src/wp-includes/widgets/class-wp-widget-pages.php
67 67 * 68 68 * @see wp_list_pages() 69 69 * 70 * @param array $args An array of arguments to retrieve the pages list. 70 * @param array $args An array of arguments to retrieve the pages list. 71 * @param array $instance Array of settings for the current widget. 71 72 */ 72 73 $out = wp_list_pages( apply_filters( 'widget_pages_args', array( 73 74 'title_li' => '', … … 74 75 'echo' => 0, 75 76 'sort_column' => $sortby, 76 77 'exclude' => $exclude 77 ) ) );78 ), $instance ) ); 78 79 79 80 if ( ! empty( $out ) ) { 80 81 echo $args['before_widget']; -
src/wp-includes/widgets/class-wp-widget-recent-comments.php
92 92 * @see WP_Comment_Query::query() for information on accepted arguments. 93 93 * 94 94 * @param array $comment_args An array of arguments used to retrieve the recent comments. 95 * @param array $instance Array of settings for the current widget. 95 96 */ 96 97 $comments = get_comments( apply_filters( 'widget_comments_args', array( 97 98 'number' => $number, 98 99 'status' => 'approve', 99 100 'post_status' => 'publish' 100 ) ) );101 ), $instance ) ); 101 102 102 103 $output .= $args['before_widget']; 103 104 if ( $title ) { -
src/wp-includes/widgets/class-wp-widget-recent-posts.php
64 64 * 65 65 * @see WP_Query::get_posts() 66 66 * 67 * @param array $args An array of arguments used to retrieve the recent posts. 67 * @param array $args An array of arguments used to retrieve the recent posts. 68 * @param array $instance Array of settings for the current widget. 68 69 */ 69 70 $r = new WP_Query( apply_filters( 'widget_posts_args', array( 70 71 'posts_per_page' => $number, … … 71 72 'no_found_rows' => true, 72 73 'post_status' => 'publish', 73 74 'ignore_sticky_posts' => true 74 ) ) );75 ), $instance ) ); 75 76 76 77 if ($r->have_posts()) : 77 78 ?> -
src/wp-includes/widgets/class-wp-widget-tag-cloud.php
62 62 * @see wp_tag_cloud() 63 63 * 64 64 * @param array $current_taxonomy The taxonomy to use in the tag cloud. Default 'tags'. 65 * @param array $instance Array of settings for the current widget. 65 66 */ 66 67 $tag_cloud = wp_tag_cloud( apply_filters( 'widget_tag_cloud_args', array( 67 68 'taxonomy' => $current_taxonomy, 68 69 'echo' => false 69 ) ) );70 ), $instance ) ); 70 71 71 72 if ( empty( $tag_cloud ) ) { 72 73 return;