Script Loader: Correct the number of arguments passed to the closure in `enqueue_block_styles_assets()`.
This avoids an `Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed` PHP fatal error when registering a block style with the `should_load_separate_core_block_assets` filter enabled. Follow-up to [51471]. Props aristath, shimon246, jrf, gziolo. Fixes #54323. Built from https://develop.svn.wordpress.org/trunk@51941 git-svn-id: http://core.svn.wordpress.org/trunk@51530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
156a453ed9
commit
6a5a0062ff
|
@ -2448,7 +2448,7 @@ function enqueue_block_styles_assets() {
|
|||
if ( wp_should_load_separate_core_block_assets() ) {
|
||||
add_filter(
|
||||
'render_block',
|
||||
function( $html, $block ) use ( $style_properties ) {
|
||||
function( $html ) use ( $style_properties ) {
|
||||
wp_enqueue_style( $style_properties['style_handle'] );
|
||||
return $html;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51940';
|
||||
$wp_version = '5.9-alpha-51941';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue