From f44030b1401df2e615573d56f8c05d4757151b7a Mon Sep 17 00:00:00 2001 From: David Baumwald Date: Tue, 11 Jan 2022 17:14:54 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@52558 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index d6d73bdfe8..5669bbf7b6 100644 --- a/src/wp-includes/blocks.php +++ b/src/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 );