PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 12.5
Jetpack – WP Security, Backup, Speed, & Growth v12.5
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
← All changes | modules/notes.php +0 -19 12.7.312.5 View file →
@@ -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();