From d55ca1215a42f5664fe46ecb54d9bde2ef44cd28 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 14 Mar 2023 16:24:15 +0000 Subject: [PATCH] Coding Standards: Use single quotes for strings without variables in `register_block_style_handle()`. This resolves two WPCS errors: {{{ String ".css" does not require double quotes; use single quotes instead String "-rtl.css" does not require double quotes; use single quotes instead }}} Follow-up to [55544]. See #57903. git-svn-id: https://develop.svn.wordpress.org/trunk@55547 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 787ba44d2c..9dcd193214 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -263,7 +263,7 @@ function register_block_style_handle( $metadata, $field_name, $index = 0 ) { if ( $is_core_block ) { $rtl_file = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $style_path_norm ); } else { - $rtl_file = str_replace( ".css", "-rtl.css", $style_path_norm ); + $rtl_file = str_replace( '.css', '-rtl.css', $style_path_norm ); } if ( is_rtl() && file_exists( $rtl_file ) ) {