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:
@@ -55,7 +55,7 @@ final class FieldGroup
|
||||
],
|
||||
'location' => [
|
||||
[
|
||||
['param' => 'post_type', 'operator' => '==', 'value' => 'shortcode-town'],
|
||||
['param' => 'post_type', 'operator' => '==', 'value' => PostType::SLUG],
|
||||
],
|
||||
],
|
||||
'menu_order' => 0,
|
||||
|
||||
Reference in New Issue
Block a user