Skip to content

Commit

Permalink
print prettified styles when SCRIPT_DEBUG is true
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Aug 4, 2022
1 parent ed194a1 commit b8ff47c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/compat/wordpress-6.1/class-wp-theme-json-6-1.php
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,11 @@ public function get_stylesheet( $types = array( 'variables', 'styles', 'presets'
$processor = new WP_Style_Engine_Processor_Gutenberg();
$processor->add_css_string( $stylesheet );

return $processor->get_css();
return $processor->get_css(
array(
'prettify' => defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG,
)
);
}

/**
Expand Down

0 comments on commit b8ff47c

Please sign in to comment.