Skip to content

Commit

Permalink
fix: corrected variable name that causes empty media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Arukuen committed Jul 13, 2024
1 parent 74db6d9 commit 52c6cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/css-optimize.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ public static function generate_css( $styles ) {
$media_queries = self::MEDIA_QUERY_ORDER;

// This will also include other media queries that we do not support, but just add those at the end of our CSS.
foreach ( array_keys( $all_style_rules ) as $mediq_query ) {
if ( ! in_array( $mediq_query, $media_queries ) ) {
foreach ( array_keys( $all_style_rules ) as $media_query ) {
if ( ! in_array( $media_query, $media_queries ) ) {
$media_queries[] = $media_query;
}
}
Expand Down

0 comments on commit 52c6cd2

Please sign in to comment.