| 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 |
|