| @@ -104,11 +104,8 @@ | ||
| 104 | 104 | * |
| 105 | 105 | * @return void |
| 106 | 106 | */ |
| 107 | 107 | public function styles_and_scripts() { |
| 108 | - if ( self::is_block_editor() ) { | |
| 109 | - return; | |
| 110 | - } | |
| 111 | 108 | $is_rtl = is_rtl(); |
| 112 | 109 | |
| 113 | 110 | if ( Jetpack::is_module_active( 'masterbar' ) ) { |
| 114 | 111 | /** |
| @@ -165,12 +162,8 @@ | ||
| 165 | 162 | if ( ! is_object( $wp_admin_bar ) ) { |
| 166 | 163 | return; |
| 167 | 164 | } |
| 168 | 165 | |
| 169 | - if ( self::is_block_editor() ) { | |
| 170 | - return; | |
| 171 | - } | |
| 172 | - | |
| 173 | 166 | $wpcom_locale = get_locale(); |
| 174 | 167 | |
| 175 | 168 | if ( ! class_exists( 'GP_Locales' ) ) { |
| 176 | 169 | if ( defined( 'JETPACK__GLOTPRESS_LOCALES_PATH' ) && file_exists( JETPACK__GLOTPRESS_LOCALES_PATH ) ) { |
| @@ -237,19 +230,7 @@ | ||
| 237 | 230 | </script> |
| 238 | 231 | <?php |
| 239 | 232 | } |
| 240 | 233 | |
| 241 | - /** | |
| 242 | - * Checks to see if we're in the block editor. | |
| 243 | - */ | |
| 244 | - public static function is_block_editor() { | |
| 245 | - if ( function_exists( 'get_current_screen' ) ) { | |
| 246 | - $current_screen = get_current_screen(); | |
| 247 | - if ( ! empty( $current_screen ) && $current_screen->is_block_editor() ) { | |
| 248 | - return true; | |
| 249 | - } | |
| 250 | - } | |
| 251 | - return false; | |
| 252 | - } | |
| 253 | 234 | } |
| 254 | 235 | |
| 255 | 236 | Jetpack_Notifications::init(); |