Skip to content

Commit

Permalink
Update MakePotCommand.php
Browse files Browse the repository at this point in the history
Resolves wp-cli#383
  • Loading branch information
jkrrv authored Feb 13, 2024
1 parent ca7a44a commit c42d10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MakePotCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ protected function extract_strings() {

if ( $this->main_file_path && $this->location ) {
$translation->addReference(
str_replace( "$this->source/", '', $this->main_file_path )
str_replace( "$this->source/", '', wp_normalize_path( $this->main_file_path ) )
);
}

Expand Down

0 comments on commit c42d10f

Please sign in to comment.