diff --git a/WPThemeReview/Sniffs/CoreFunctionality/PrefixAllGlobalsSniff.php b/WPThemeReview/Sniffs/CoreFunctionality/PrefixAllGlobalsSniff.php index 5c427055..38a4c1a2 100644 --- a/WPThemeReview/Sniffs/CoreFunctionality/PrefixAllGlobalsSniff.php +++ b/WPThemeReview/Sniffs/CoreFunctionality/PrefixAllGlobalsSniff.php @@ -82,7 +82,7 @@ private function is_from_allowed_folder( $path ) { } foreach ( $this->allowed_folders as $folder ) { - if ( strrpos( $path, '/' . $folder . '/' ) !== false ) { + if ( strrpos( $path, DIRECTORY_SEPARATOR . $folder . DIRECTORY_SEPARATOR ) !== false ) { return true; } }