Make WordPress Core

Changeset 52558


Ignore:
Timestamp:
01/11/2022 05:14:54 PM (3 years ago)
Author:
davidbaumwald
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r52556 r52558  
    12391239            // Add RTL stylesheet.
    12401240            if ( file_exists( $rtl_file_path ) ) {
    1241                 wp_style_add_data( $args['hanle'], 'rtl', 'replace' );
     1241                wp_style_add_data( $args['handle'], 'rtl', 'replace' );
    12421242
    12431243                if ( is_rtl() ) {
Note: See TracChangeset for help on using the changeset viewer.