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:
@@ -16,16 +16,16 @@ final class PostType
|
||||
{
|
||||
register_post_type(self::SLUG, [
|
||||
'labels' => [
|
||||
'name' => __('Шорткоды', 'wp-multi-city'),
|
||||
'singular_name' => __('Шорткод', 'wp-multi-city'),
|
||||
'menu_name' => __('Шорткоды', 'wp-multi-city'),
|
||||
'add_new' => __('Добавить', 'wp-multi-city'),
|
||||
'add_new_item' => __('Добавить шорткод', 'wp-multi-city'),
|
||||
'edit_item' => __('Редактировать', 'wp-multi-city'),
|
||||
'new_item' => __('Новый', 'wp-multi-city'),
|
||||
'view_item' => __('Смотреть', 'wp-multi-city'),
|
||||
'search_items' => __('Поиск', 'wp-multi-city'),
|
||||
'not_found' => __('Не найдено', 'wp-multi-city'),
|
||||
'name' => 'Шорткоды',
|
||||
'singular_name' => 'Шорткод',
|
||||
'menu_name' => 'Шорткоды',
|
||||
'add_new' => 'Добавить',
|
||||
'add_new_item' => 'Добавить шорткод',
|
||||
'edit_item' => 'Редактировать',
|
||||
'new_item' => 'Новый',
|
||||
'view_item' => 'Смотреть',
|
||||
'search_items' => 'Поиск',
|
||||
'not_found' => 'Не найдено',
|
||||
],
|
||||
'public' => false,
|
||||
'exclude_from_search' => true,
|
||||
|
||||
Reference in New Issue
Block a user