Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/compat/wordpress-6.0/get-global-styles-and-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ function gutenberg_get_global_stylesheet( $types = array() ) {
( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) &&
( ! defined( 'SCRIPT_DEBUG' ) || ! SCRIPT_DEBUG ) &&
( ! defined( 'REST_REQUEST' ) || ! REST_REQUEST ) &&
! is_admin()
! is_admin() &&
/** This filter is documented in wp-includes/global-styles-and-settings.php */
apply_filters( 'global_styles_enable_cache', true )
);
$transient_name = 'gutenberg_global_styles_' . get_stylesheet();
if ( $can_use_cached ) {
Expand Down Expand Up @@ -147,7 +149,9 @@ function gutenberg_get_global_styles_svg_filters() {
( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) &&
( ! defined( 'SCRIPT_DEBUG' ) || ! SCRIPT_DEBUG ) &&
( ! defined( 'REST_REQUEST' ) || ! REST_REQUEST ) &&
! is_admin()
! is_admin() &&
/** This filter is documented in wp-includes/global-styles-and-settings.php */
apply_filters( 'global_styles_enable_cache', true )
);
if ( $can_use_cached ) {
$cached = get_transient( $transient_name );
Expand Down