mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
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:
parent
2a686addf0
commit
f950eec323
@ -1238,7 +1238,7 @@ function wp_enqueue_block_style( $block_name, $args ) {
|
|||||||
|
|
||||||
// Add RTL stylesheet.
|
// Add RTL stylesheet.
|
||||||
if ( file_exists( $rtl_file_path ) ) {
|
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() ) {
|
if ( is_rtl() ) {
|
||||||
wp_style_add_data( $args['handle'], 'path', $rtl_file_path );
|
wp_style_add_data( $args['handle'], 'path', $rtl_file_path );
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user