Skip to content

Commit

Permalink
changed name constant
Browse files Browse the repository at this point in the history
  • Loading branch information
davidperezgar committed Oct 1, 2024
1 parent a323a1e commit b21361d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/Checker/Checks/Plugin_Repo/Trademarks_Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class Trademarks_Check extends Abstract_File_Check {
*
* @var string[]
*/
const FOR_USE_ACRONYM = array(
const ALLOWED_ACRONYMS = array(
'wp',
'wc',
);
Expand Down Expand Up @@ -363,7 +363,7 @@ private function validate_name_has_no_trademarks( $plugin_name ) {
);
} elseif (
trim( $check, '-' ) === $check
&& in_array( $check, self::FOR_USE_ACRONYM, true )
&& in_array( $check, self::ALLOWED_ACRONYMS, true )
) {
// Trademarks that are allowed to use as an acronym.
$message = sprintf(
Expand Down Expand Up @@ -421,7 +421,7 @@ private function validate_slug_has_no_trademarks( $plugin_slug ) {
);
} elseif (
trim( $check, '-' ) === $check
&& in_array( $check, self::FOR_USE_ACRONYM, true )
&& in_array( $check, self::ALLOWED_ACRONYMS, true )
) {
// Trademarks that are allowed to use with Acronym.
$message = sprintf(
Expand Down

0 comments on commit b21361d

Please sign in to comment.