mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
0e8e1da00d
commit
d55ca1215a
@ -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 ) ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user