-
-
Notifications
You must be signed in to change notification settings - Fork 64
Fix: Add missing version parameter to _doing_it_wrong() calls #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Add missing version parameter to _doing_it_wrong() calls #179
Conversation
…lements This addresses David's feedback in PR Multisite-Ultimate#159 to include the version parameter in all _doing_it_wrong() calls for better debugging when Slim SEO processes shortcodes before WP Ultimo is fully initialized.
WalkthroughAdded wu_get_version() as the third argument to _doing_it_wrong calls within output() methods across several UI element classes. These changes occur in defensive branches when required context (site or membership) is missing. No other logic, control flow, or public signatures were changed. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (5)
🧰 Additional context used🧬 Code graph analysis (5)inc/ui/class-invoices-element.php (1)
inc/ui/class-billing-info-element.php (1)
inc/ui/class-limits-element.php (1)
inc/ui/class-current-site-element.php (1)
inc/ui/class-account-summary-element.php (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
🔇 Additional comments (6)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect, thanks
Summary
Adds the missing
wu_get_version()parameter to all_doing_it_wrong()calls in UI elements as requested by David in PR #159.This addresses the compatibility issue with Slim SEO plugin that processes shortcodes before WP Ultimo is fully initialized, providing better debugging information when these defensive checks are triggered.
Changes
_doing_it_wrong()calls in 5 UI element classes:class-account-summary-element.phpclass-billing-info-element.phpclass-current-site-element.phpclass-invoices-element.phpclass-limits-element.phpTest plan
_doing_it_wrong()calls now have 3 parametersFixes the issue mentioned in PR #178.
Summary by CodeRabbit
New Features
Chores