chore(wpmc S2): defensive defines + PostType::SLUG refs + stale comment

Wrap 4 define() calls with defined() || guards to survive double-load.
Replace hardcoded 'shortcode-town' strings in Taxonomy and FieldGroup
with PostType::SLUG. Update Activator comment to reflect S2 reality.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vladimir Bryzgalov
2026-05-12 18:02:14 +05:00
parent 38bb7dae55
commit 12a271981a
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ final class Taxonomy
public static function do_register(): void
{
register_taxonomy(self::SLUG, ['shortcode-town'], [
register_taxonomy(self::SLUG, [PostType::SLUG], [
'labels' => [
'name' => __('Города', 'wp-multi-city'),
'singular_name' => __('Город', 'wp-multi-city'),