fix(wpmc 1.0.1): remove __() from labels (no translations, fixes WP 6.7 notice)

Replace all __('...', 'wp-multi-city') calls in CPT, taxonomy, ACF field group,
and options page label arrays with literal Russian strings. The plugin ships no
.mo translation files, so wrapping labels in __() was YAGNI and triggered the
WP 6.7+ _load_textdomain_just_in_time notice.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Vladimir Bryzgalov
2026-05-17 17:01:11 +05:00
parent 19409ac062
commit 949fb19e95
4 changed files with 29 additions and 29 deletions
+4 -4
View File
@@ -16,10 +16,10 @@ final class Taxonomy
{
register_taxonomy(self::SLUG, [PostType::SLUG], [
'labels' => [
'name' => __('Города', 'wp-multi-city'),
'singular_name' => __('Город', 'wp-multi-city'),
'menu_name' => __('Города', 'wp-multi-city'),
'add_new_item' => __('Добавить', 'wp-multi-city'),
'name' => 'Города',
'singular_name' => 'Город',
'menu_name' => 'Города',
'add_new_item' => 'Добавить',
],
'public' => false,
'publicly_queryable' => false,