Changeset 7288 for trunk/wp-admin/upload.php
- Timestamp:
- 03/14/2008 08:39:07 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload.php
r7251 r7288 143 143 144 144 if ( !is_singular() ) : 145 $arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = ' post' ORDER BY post_date DESC";145 $arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'attachment' ORDER BY post_date DESC"; 146 146 147 147 $arc_result = $wpdb->get_results( $arc_query );
Note: See TracChangeset
for help on using the changeset viewer.