Coding Standards: Use strict comparison in `wp_add_global_styles_for_blocks()`.
Follow-up to [57546]. Props immeet94. Fixes #60964. Built from https://develop.svn.wordpress.org/trunk@58026 git-svn-id: http://core.svn.wordpress.org/trunk@57492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
244a8cf308
commit
453c78db60
|
@ -329,7 +329,7 @@ function wp_add_global_styles_for_blocks() {
|
||||||
if ( str_starts_with( $metadata['name'], 'core/' ) ) {
|
if ( str_starts_with( $metadata['name'], 'core/' ) ) {
|
||||||
$block_name = str_replace( 'core/', '', $metadata['name'] );
|
$block_name = str_replace( 'core/', '', $metadata['name'] );
|
||||||
$block_handle = 'wp-block-' . $block_name;
|
$block_handle = 'wp-block-' . $block_name;
|
||||||
if ( in_array( $block_handle, $wp_styles->queue ) ) {
|
if ( in_array( $block_handle, $wp_styles->queue, true ) ) {
|
||||||
wp_add_inline_style( $stylesheet_handle, $block_css );
|
wp_add_inline_style( $stylesheet_handle, $block_css );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -344,7 +344,7 @@ function wp_add_global_styles_for_blocks() {
|
||||||
if ( str_starts_with( $block_name, 'core/' ) ) {
|
if ( str_starts_with( $block_name, 'core/' ) ) {
|
||||||
$block_name = str_replace( 'core/', '', $block_name );
|
$block_name = str_replace( 'core/', '', $block_name );
|
||||||
$block_handle = 'wp-block-' . $block_name;
|
$block_handle = 'wp-block-' . $block_name;
|
||||||
if ( in_array( $block_handle, $wp_styles->queue ) ) {
|
if ( in_array( $block_handle, $wp_styles->queue, true ) ) {
|
||||||
wp_add_inline_style( $stylesheet_handle, $block_css );
|
wp_add_inline_style( $stylesheet_handle, $block_css );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.6-alpha-58025';
|
$wp_version = '6.6-alpha-58026';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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