Skip to content

Commit

Permalink
Merge pull request #354 from ernilambar/fix-plugin-name-in-readme
Browse files Browse the repository at this point in the history
Fix plugin name from readme in `Trademarks` check
  • Loading branch information
mukeshpanchal27 authored Dec 21, 2023
2 parents fab8950 + 1dc7185 commit 4ac0bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/Checker/Checks/Trademarks_Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private function check_for_name_in_readme( Check_Result $result, array $files )
return;
}

$name = $matches[1];
$name = trim( $matches[1] );

try {
$this->validate_name_has_no_trademarks( $name );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function data_trademarks_check() {
Trademarks_Check::TYPE_README,
'test-trademarks-plugin-readme-errors/load.php',
'readme.txt',
'The plugin name includes a restricted term. Your chosen plugin name - " Test Plugin with readme " - contains the restricted term "plugin" which cannot be used at all in your plugin name.',
'The plugin name includes a restricted term. Your chosen plugin name - "Test Plugin with readme" - contains the restricted term "plugin" which cannot be used at all in your plugin name.',
),
'Plugin header - Test Trademarks Plugin Header Name Errors' => array(
Trademarks_Check::TYPE_NAME,
Expand Down

0 comments on commit 4ac0bce

Please sign in to comment.