fix: auto-deactivate other active Stackable plugin#3574
Conversation
🤖 Pull request artifacts
|
|
@coderabbitai please review |
|
@bfintal I'll review the PR changes for you. ✅ Actions performedReview triggered.
|
|
Caution Review failedThe pull request is closed. WalkthroughAdds cross-plugin conflict handling in plugin.php: on activation, checks for another Stackable plugin, deactivates it, and stores its info in an option. If deactivation occurred, shows an admin notice with the other plugin’s version/build, then deletes the stored option. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Admin
participant WP as WordPress
participant This as This Stackable Plugin
participant Other as Other Stackable Plugin
Admin->>WP: Activate This Plugin
WP->>This: run_activation_hook()
This->>WP: is_plugin_active(Other)
alt Other is active and different
This->>WP: deactivate_plugins(Other)
This->>WP: update_option(stackable_other_stackable_plugin_info, {file, BUILD, VERSION})
end
Admin->>WP: Load Admin Dashboard
WP->>WP: get_option(stackable_other_stackable_plugin_info)
alt Option exists
WP->>This: add_action('admin_notices', notice)
This->>Admin: Print notice with Other BUILD/VERSION
This->>WP: delete_option(stackable_other_stackable_plugin_info)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
✨ Finishing Touches
🧪 Generate unit tests
🪧 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 (
|
Summary by CodeRabbit