We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b42d405 commit cd88a8bCopy full SHA for cd88a8b
WordPressVIPMinimum/Sniffs/UserExperience/AdminBarRemovalSniff.php
@@ -160,7 +160,7 @@ public function register() {
160
public function process_token( $stackPtr ) {
161
162
$file_name = FilePath::getName( $this->phpcsFile );
163
- $file_extension = substr( strrchr( $file_name, '.' ), 1 );
+ $file_extension = pathinfo( $file_name, \PATHINFO_EXTENSION );
164
165
if ( $file_extension === 'css' ) {
166
if ( $this->tokens[ $stackPtr ]['code'] === \T_STYLE ) {
0 commit comments