Skip to content

Commit

Permalink
fix(sql): fix sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazz-Man committed Sep 28, 2024
1 parent a127b2f commit f93f887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Optimization/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public static function mediaLibraryMonthsWithFiles( $months = null ): array {
month( post_date ) as month
from {$wpdb->posts}
where post_type = 'attachment'
order by post_date desc
order by year desc
SQL
);

Expand Down

0 comments on commit f93f887

Please sign in to comment.