Changeset 31241
- Timestamp:
- 01/19/2015 08:25:36 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-widgets.php
r30982 r31241 288 288 ?> 289 289 <select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> 290 <option value=""><?php esc_attr_e( 'Select Month' ); ?></option>291 292 290 <?php 293 291 /** … … 300 298 * @param array $args An array of Archives widget drop-down arguments. 301 299 */ 302 wp_get_archives(apply_filters( 'widget_archives_dropdown_args', array(300 $dropdown_args = apply_filters( 'widget_archives_dropdown_args', array( 303 301 'type' => 'monthly', 304 302 'format' => 'option', 305 303 'show_post_count' => $c 306 ) ) ); 307 ?> 304 ) ); 305 306 switch ( $dropdown_args['type'] ) { 307 case 'yearly': 308 $label = __( 'Select Year' ); 309 break; 310 case 'monthly': 311 $label = __( 'Select Month' ); 312 break; 313 case 'daily': 314 $label = __( 'Select Day' ); 315 break; 316 case 'weekly': 317 $label = __( 'Select Week' ); 318 break; 319 default: 320 $label = __( 'Select Post' ); 321 break; 322 } 323 ?> 324 325 <option value=""><?php echo esc_attr( $label ); ?></option> 326 <?php wp_get_archives( $dropdown_args ); ?> 327 308 328 </select> 309 329 <?php
Note: See TracChangeset
for help on using the changeset viewer.