Fix site_title ReferenceError caused by third-party plugin conflicts#332
Fix site_title ReferenceError caused by third-party plugin conflicts#332superdav42 merged 1 commit intomainfrom
Conversation
Initialize site_title in Vue initial_data so it's always defined, even if a plugin like JetGridBuilder prevents the form field from rendering. Previously site_title was only set via v-init directive on the HTML element, making it fragile to rendering interference. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughA new Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
Summary
site_titlein the Vueinitial_dataobject and PHP checkout variables so it's always defined, even when third-party plugins (e.g., JetGridBuilder by Crocoblock) interfere with page renderingsite_titlewas only set via av-initdirective on the HTML form field, making it fragile to rendering interferencesite_urlwas already properly initialized; this bringssite_titleto parityTest plan
/newsite)?step=createstepReferenceError: site_title is not definedin the browser console🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Chores
✏️ Tip: You can customize this high-level summary in your review settings.