PluginProbe
Gutenberg / 22.7.0
Gutenberg v22.7.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | lib/experimental/class-wp-rest-block-editor-settings-controller.php +3 -10 23.6.2 → 22.7.0 View file →
@@ -351,9 +351,10 @@
351 351 // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
352 352 $hook_suffix = 'block-editor-assets';
353 353
354 354 // Remove unwanted scripts/styles.
355 - remove_action( 'admin_enqueue_scripts', 'wp_enqueue_command_palette_assets' );
355 + remove_action( 'admin_enqueue_scripts', 'gutenberg_enqueue_command_palette_assets', 9 );
356 + remove_action( 'admin_enqueue_scripts', 'gutenberg_enqueue_command_palette_assets' );
356 357 remove_action( 'admin_enqueue_scripts', 'wp_auth_check_load' );
357 358 remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
358 359 remove_action( 'admin_print_styles', 'print_emoji_styles' );
359 360
@@ -551,17 +552,9 @@
551 552 $script_modules = wp_script_modules();
552 553 $registered = array();
553 554 $reflection = new ReflectionClass( $script_modules );
554 555 $property = $reflection->getProperty( 'registered' );
555 - /*
556 - * ReflectionProperty::setAccessible is:
557 - * - needed until 8.1.0, as property `registered` is private.
558 - * - redundant as of 8.1.0, which made non-public reflection accessible by default.
559 - * - deprecated as of 8.5.0.
560 - */
561 - if ( PHP_VERSION_ID < 80100 ) {
562 - $property->setAccessible( true );
563 - }
556 + $property->setAccessible( true );
564 557 $registered = $property->getValue( $script_modules );
565 558 $import_map = array();
566 559 foreach ( $registered as $id => $module ) {
567 560 // Handle both array and object formats.