Make WordPress Core

Changeset 52560


Ignore:
Timestamp:
01/11/2022 06:13:35 PM (2 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.
Merges [52558] to the 5.9 branch.
Fixes #54786.

Location:
branches/5.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9

  • branches/5.9/src/wp-includes/blocks.php

    r52559 r52560  
    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.