Skip to content

Commit

Permalink
This is already handled in wp_should_load_separate_core_block_assets
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed May 18, 2022
1 parent dd5ca4e commit 8fe147d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,6 @@ function wp_maybe_inline_block_style_parts( $settings, $metadata ) {
return $settings;
}

// Bail early if not a frontend request.
if ( is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
return $settings;
}

// Bail early if the block doesn't have a "style" defined.
if ( empty( $settings['style'] ) ) {
return $settings;
Expand Down

0 comments on commit 8fe147d

Please sign in to comment.