Skip to content

Commit

Permalink
Revert adding wrong check
Browse files Browse the repository at this point in the history
Since #22520 was merged
on May we've been enqueuing the presets as CSS variables
whether or not the theme had support for theme.json
as a way to speed up themes using them and get feedback.

There are enough checks in place that this is inocuous.
  • Loading branch information
oandregal committed Sep 8, 2020
1 parent 6dfc7e5 commit 422a359
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/global-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,6 @@ function gutenberg_experimental_global_styles_get_merged_origins() {
* and enqueues the resulting stylesheet.
*/
function gutenberg_experimental_global_styles_enqueue_assets() {
if ( ! gutenberg_experimental_global_styles_has_theme_json_support() ) {
return;
}

$merged = gutenberg_experimental_global_styles_get_merged_origins();
$stylesheet = gutenberg_experimental_global_styles_get_stylesheet( $merged );
if ( empty( $stylesheet ) ) {
Expand Down

0 comments on commit 422a359

Please sign in to comment.