From f950eec32325e8cbd4e9cd87aac2b718c6879df0 Mon Sep 17 00:00:00 2001 From: davidbaumwald Date: Tue, 11 Jan 2022 17:16:00 +0000 Subject: [PATCH] Script Loader: Fix a variable typo in `wp_enqueue_block_style`. In `wp_enqueue_block_style` when `rtl` versions of CSS files are detected, `wp_style_add_data` is called to add the metadata to the registered sheet. However, the stylesheet `handle` argument is misspelled as `hanle`. This change corrects the argument name. Props omaeyusuke. Fixes #54786. Built from https://develop.svn.wordpress.org/trunk@52558 git-svn-id: http://core.svn.wordpress.org/trunk@52148 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index d6d73bdfe8..5669bbf7b6 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -1238,7 +1238,7 @@ function wp_enqueue_block_style( $block_name, $args ) { // Add RTL stylesheet. if ( file_exists( $rtl_file_path ) ) { - wp_style_add_data( $args['hanle'], 'rtl', 'replace' ); + wp_style_add_data( $args['handle'], 'rtl', 'replace' ); if ( is_rtl() ) { wp_style_add_data( $args['handle'], 'path', $rtl_file_path ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 2443ce9388..6896339e93 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52556'; +$wp_version = '6.0-alpha-52558'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.