Changeset 25025 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 08/15/2013 06:05:54 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r24974 r25025 2078 2078 2079 2079 $month_count = count($arc_result); 2080 $selected_month = isset( $_GET['m'] ) ? $_GET['m'] : 0; 2080 2081 2081 2082 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { ?> 2082 2083 <select name='m'> 2083 <option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>2084 <option<?php selected( $selected_month, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option> 2084 2085 <?php 2085 2086 foreach ($arc_result as $arc_row) { … … 2088 2089 $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 ); 2089 2090 2090 if ( isset($_GET['m']) && ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] ))2091 if ( $arc_row->yyear . $arc_row->mmonth == $selected_month ) 2091 2092 $default = ' selected="selected"'; 2092 2093 else
Note: See TracChangeset
for help on using the changeset viewer.