From 1c2653dbcf1b7b3c5cdb8e16dffdf9f2e1666332 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 13 Sep 2023 20:50:17 +0000 Subject: [PATCH] General: Update `wp_register_script()` calls in core to use new function signature. Since most core scripts are registered using `WP_Scripts::add()`, which is not affected by the signature change, only calls to `wp_register_script()` using the old signature need to be updated. There is only a single instance left, which is updated in this changeset. Props incursadesigns. Fixes #58634. git-svn-id: https://develop.svn.wordpress.org/trunk@56568 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/script-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index b51569f40c..27f5a3714c 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -2717,7 +2717,7 @@ function enqueue_editor_block_styles_assets() { $register_script_lines[] = '} )();'; $inline_script = implode( "\n", $register_script_lines ); - wp_register_script( 'wp-block-styles', false, array( 'wp-blocks' ), true, true ); + wp_register_script( 'wp-block-styles', false, array( 'wp-blocks' ), true, array( 'in_footer' => true ) ); wp_add_inline_script( 'wp-block-styles', $inline_script ); wp_enqueue_script( 'wp-block-styles' ); }