lib
block-supports
4 months ago
compat
3 months ago
experimental
3 months ago
media
3 months ago
README.md
10.0 KB
7 months ago
block-editor-settings.php
5.4 KB
7 months ago
block-template-utils.php
3.5 KB
1 year ago
blocks.php
11.8 KB
7 months ago
class-wp-duotone-gutenberg.php
37.6 KB
5 months ago
class-wp-icons-registry-gutenberg.php
7.1 KB
4 months ago
class-wp-rest-edit-site-export-controller-gutenberg.php
1.2 KB
2 years ago
class-wp-rest-global-styles-controller-gutenberg.php
24.5 KB
7 months ago
class-wp-rest-icons-controller-gutenberg.php
481 B
4 months ago
class-wp-theme-json-data-gutenberg.php
1.7 KB
2 years ago
class-wp-theme-json-gutenberg.php
196.1 KB
3 months ago
class-wp-theme-json-resolver-gutenberg.php
34.7 KB
6 months ago
class-wp-theme-json-schema-gutenberg.php
7.4 KB
7 months ago
client-assets.php
16.4 KB
4 months ago
demo.php
1.6 KB
1 year ago
global-styles-and-settings.php
14.2 KB
7 months ago
init.php
945 B
4 months ago
interactivity-api.php
1.2 KB
7 months ago
load.php
10.9 KB
3 months ago
mathml-kses.php
6.3 KB
10 months ago
overlay-patterns.php
12.2 KB
6 months ago
remove-core-enqueue-scripts.php
779 B
5 months ago
rest-api.php
1.6 KB
4 months ago
script-loader.php
5.9 KB
5 months ago
theme-i18n.json
1.8 KB
7 months ago
theme.json
9.2 KB
5 months ago
upgrade.php
2.6 KB
5 months ago
remove-core-enqueue-scripts.php in Gutenberg 23.2.0, at lib/remove-core-enqueue-scripts.php
| 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 |