From 439284a3a6a39fc46a7a766157ecf3f815f2490b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Santos?= Date: Wed, 31 Jul 2024 10:32:19 +0100 Subject: [PATCH] Update AbstractPostType.php Be more specific about the flag that's being ignored --- .../includes/classes/PostTypes/AbstractPostType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mu-plugins/10up-plugin/includes/classes/PostTypes/AbstractPostType.php b/mu-plugins/10up-plugin/includes/classes/PostTypes/AbstractPostType.php index 2ce9a3fe..5a3c0448 100644 --- a/mu-plugins/10up-plugin/includes/classes/PostTypes/AbstractPostType.php +++ b/mu-plugins/10up-plugin/includes/classes/PostTypes/AbstractPostType.php @@ -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(). @@ -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; }