Skip to content

Commit

Permalink
Honor location flag
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Dec 18, 2023
1 parent 0fcd3d8 commit 5ffc3b2
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 @@ -630,7 +630,7 @@ protected function extract_strings() {
$translation->addExtractedComment( sprintf( '%s of the plugin', $header ) );
}

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

0 comments on commit 5ffc3b2

Please sign in to comment.