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
This commit is contained in:
davidbaumwald 2022-01-11 17:16:00 +00:00
parent 2a686addf0
commit f950eec323
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -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.