diff options
Diffstat (limited to 'src/wp-includes/script-loader.php')
-rw-r--r-- | src/wp-includes/script-loader.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 51efa328bf..d439629882 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -1497,7 +1497,7 @@ function wp_default_scripts( $scripts ) { $scripts->add( 'wp-color-picker', "/wp-admin/js/color-picker$suffix.js", array( 'iris' ), false, 1 ); $scripts->set_translations( 'wp-color-picker' ); - $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox', 'wp-util', 'wp-a11y', 'wp-date' ), false, 1 ); + $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'common', 'jquery', 'admin-comments', 'postbox', 'wp-util', 'wp-a11y', 'wp-date' ), false, 1 ); $scripts->set_translations( 'dashboard' ); $scripts->add( 'list-revisions', "/wp-includes/js/wp-list-revisions$suffix.js" ); @@ -2679,12 +2679,8 @@ function wp_should_load_block_assets_on_demand() { * context (only enqueuing editor scripts while in context of the editor). * * @since 5.0.0 - * - * @global WP_Screen $current_screen WordPress current screen object. */ function wp_enqueue_registered_block_scripts_and_styles() { - global $current_screen; - if ( wp_should_load_block_assets_on_demand() ) { return; } @@ -2900,7 +2896,7 @@ function wp_get_script_tag( $attributes ) { /** * Prints formatted `<script>` loader tag. * - * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_script_attributes'} filter. + * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_script_attributes'} filter. * Automatically injects type attribute if needed. * * @since 5.7.0 @@ -2914,7 +2910,7 @@ function wp_print_script_tag( $attributes ) { /** * Constructs an inline script tag. * - * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_script_attributes'} filter. + * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_inline_script_attributes'} filter. * Automatically injects type attribute if needed. * * @since 5.7.0 @@ -3003,7 +2999,7 @@ function wp_get_inline_script_tag( $data, $attributes = array() ) { /** * Prints an inline script tag. * - * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_script_attributes'} filter. + * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_inline_script_attributes'} filter. * Automatically injects type attribute if needed. * * @since 5.7.0 |