Skip to content

Commit

Permalink
Merge pull request #234 from 10up/s3rgiosan-patch-1
Browse files Browse the repository at this point in the history
Add specific phpcs:ignore flag
  • Loading branch information
darylldoyle authored Jul 31, 2024
2 parents 2dab08e + 439284a commit de338c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function get_labels() {
$plural_label = $this->get_plural_label();
$singular_label = $this->get_singular_label();

// phpcs:disable -- ignoring template strings without translators placeholder since this is dynamic
// phpcs:disable WordPress.WP.I18n.MissingTranslatorsComment -- ignoring template strings without translators placeholder since this is dynamic
$labels = [
'name' => $plural_label,
// Already translated via get_plural_label().
Expand Down Expand Up @@ -169,7 +169,7 @@ public function get_labels() {
'menu_name' => $plural_label,
'name_admin_bar' => $singular_label,
];
// phpcs:enable
// phpcs:enable WordPress.WP.I18n.MissingTranslatorsComment

return $labels;
}
Expand Down

0 comments on commit de338c0

Please sign in to comment.