PluginProbe
Gutenberg / 23.3.1
Gutenberg v23.3.1
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 7.4.0 All 402 releases
gutenberg / lib / remove-core-enqueue-scripts.php

remove-core-enqueue-scripts.php in Gutenberg 23.3.1, at lib/remove-core-enqueue-scripts.php

17 lines 779 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Removes Core's admin enqueue scripts hooks to prevent duplicate route registration.
4 *
5 * Core's *_enqueue_scripts functions fire the page init actions, but Gutenberg's
6 * render functions also fire them. We remove Core's to avoid duplicate route registration.
7 *
8 * @package gutenberg
9 */
10
11 remove_action( 'admin_enqueue_scripts', 'wp_font_library_wp_admin_enqueue_scripts' );
12 remove_action( 'admin_enqueue_scripts', 'wp_site_editor_v2_wp_admin_enqueue_scripts' );
13 remove_action( 'admin_enqueue_scripts', 'wp_options_connectors_wp_admin_enqueue_scripts' );
14 remove_action( 'admin_init', 'wp_site_editor_v2_intercept_render' );
15 remove_action( 'admin_init', 'wp_font_library_intercept_render' );
16 remove_action( 'admin_init', 'wp_options_connectors_intercept_render' );
17