| @@ -8,10 +8,10 @@ | ||
| 8 | 8 | private static $use_style_controls = false; |
| 9 | 9 | |
| 10 | 10 | private static $is_frontend = null; |
| 11 | 11 | |
| 12 | - public static function set_use_style_controls( bool $is_use ): void { | |
| 13 | - static::$use_style_controls = $is_use; | |
| 12 | + public static function set_use_style_controls( bool $bool ): void { | |
| 13 | + static::$use_style_controls = $bool; | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | public static function is_use_style_controls(): bool { |
| 17 | 17 | return static::$use_style_controls; |
| @@ -21,9 +21,8 @@ | ||
| 21 | 21 | if ( null === static::$is_frontend ) { |
| 22 | 22 | static::$is_frontend = ( |
| 23 | 23 | ! is_admin() |
| 24 | 24 | && ! Plugin::$instance->preview->is_preview_mode() |
| 25 | - && ! defined( 'REST_REQUEST' ) | |
| 26 | 25 | ); |
| 27 | 26 | } |
| 28 | 27 | |
| 29 | 28 | return static::$is_frontend; |