diff --git a/lib/cleanup.php b/lib/cleanup.php
index a9f1833..4555077 100644
--- a/lib/cleanup.php
+++ b/lib/cleanup.php
@@ -99,8 +99,8 @@ add_filter('wp_title', 'roots_wp_title', 10);
*/
function roots_clean_style_tag($input) {
preg_match_all("!!", $input, $matches);
- // Only display media if it's print
- $media = $matches[3][0] === 'print' ? ' media="print"' : '';
+ // Only display media if it is meaningful
+ $media = $matches[3][0] !== '' && $matches[3][0] !== 'all' ? ' media="' . $matches[3][0] . '"' : '';
return '' . "\n";
}
add_filter('style_loader_tag', 'roots_clean_style_tag');