Make WordPress Core

Changeset 55547


Ignore:
Timestamp:
03/14/2023 04:24:15 PM (21 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r55544 r55547  
    264264            $rtl_file = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $style_path_norm );
    265265        } else {
    266             $rtl_file = str_replace( ".css", "-rtl.css", $style_path_norm );
     266            $rtl_file = str_replace( '.css', '-rtl.css', $style_path_norm );
    267267        }
    268268
Note: See TracChangeset for help on using the changeset viewer.