From ca8a03307966e34679d01d2dc18a7995c84fbff9 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 13 Sep 2023 20:52:22 +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. Built from https://develop.svn.wordpress.org/trunk@56568 git-svn-id: http://core.svn.wordpress.org/trunk@56080 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index b51569f40c..27f5a3714c 100644 --- a/wp-includes/script-loader.php +++ b/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' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 637dc346e2..d38f8034d6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56567'; +$wp_version = '6.4-alpha-56568'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.