- Timestamp:
- 10/02/2017 10:01:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-archives.php
r41162 r41685 62 62 * 63 63 * @since 2.8.0 64 * @since 4.9.0 Added the `$instance` parameter. 64 65 * 65 66 * @see wp_get_archives() 66 67 * 67 * @param array $args An array of Archives widget drop-down arguments. 68 * @param array $args An array of Archives widget drop-down arguments. 69 * @param array $instance Settings for the current Archives widget instance. 68 70 */ 69 71 $dropdown_args = apply_filters( 'widget_archives_dropdown_args', array( … … 71 73 'format' => 'option', 72 74 'show_post_count' => $c 73 ) );75 ), $instance ); 74 76 75 77 switch ( $dropdown_args['type'] ) { … … 103 105 * 104 106 * @since 2.8.0 107 * @since 4.9.0 Added the `$instance` parameter. 105 108 * 106 109 * @see wp_get_archives() 107 110 * 108 * @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. 109 113 */ 110 114 wp_get_archives( apply_filters( 'widget_archives_args', array( 111 115 'type' => 'monthly', 112 116 'show_post_count' => $c 113 ) ) );117 ), $instance ) ); 114 118 ?> 115 119 </ul>
Note: See TracChangeset
for help on using the changeset viewer.