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:
@@ -25,15 +25,15 @@ final class FieldGroup
|
||||
'fields' => [
|
||||
[
|
||||
'key' => self::REPEATER_KEY,
|
||||
'label' => __('Подстановки по городам', 'wp-multi-city'),
|
||||
'label' => 'Подстановки по городам',
|
||||
'name' => 'list_shortcode',
|
||||
'type' => 'repeater',
|
||||
'layout' => 'table',
|
||||
'button_label' => __('Добавить город', 'wp-multi-city'),
|
||||
'button_label' => 'Добавить город',
|
||||
'sub_fields' => [
|
||||
[
|
||||
'key' => 'field_wpmc_list_shortcode_town',
|
||||
'label' => __('Город', 'wp-multi-city'),
|
||||
'label' => 'Город',
|
||||
'name' => 'town',
|
||||
'type' => 'taxonomy',
|
||||
'taxonomy' => 'town',
|
||||
@@ -45,7 +45,7 @@ final class FieldGroup
|
||||
],
|
||||
[
|
||||
'key' => 'field_wpmc_list_shortcode_text',
|
||||
'label' => __('Значение', 'wp-multi-city'),
|
||||
'label' => 'Значение',
|
||||
'name' => 'text',
|
||||
'type' => 'textarea',
|
||||
'rows' => 4,
|
||||
|
||||
Reference in New Issue
Block a user