diff --git a/src/MakePotCommand.php b/src/MakePotCommand.php index affce87..f3e84de 100644 --- a/src/MakePotCommand.php +++ b/src/MakePotCommand.php @@ -630,7 +630,7 @@ protected function extract_strings() { if ( $this->main_file_path && $this->location ) { $translation->addReference( - ltrim( str_replace( "$this->source/", '', Utils\normalize_path( $this->main_file_path ) ), '/' ) + ltrim( str_replace( Utils\normalize_path( "$this->source/" ), '', Utils\normalize_path( $this->main_file_path ) ), '/' ) ); }