Skip to content

Commit d973e79

Browse files
committed
Fix improper detection of the domain by property.
1 parent ea95866 commit d973e79

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

WPForms/Sniffs/PHP/ValidateDomainSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ private function getExpectedDomain( $phpcsFile ) {
187187
*/
188188
private function findDomainByProperty( $filePath ) {
189189

190+
$filePath = ltrim( $filePath, DIRECTORY_SEPARATOR );
190191
$currentDomain = '';
191192
$currentPath = '';
192193

0 commit comments

Comments
 (0)