-
Notifications
You must be signed in to change notification settings - Fork 108
feat: Implement version switching functionality in plugin settings #251
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
base: core
Are you sure you want to change the base?
Conversation
I followed the testing steps, but at step 4 the version didn’t switch. The version I selected was downloaded, and I received positive feedback confirming the switch. However, the new version did not replace the previous one — it was only downloaded, that plugin version was listed in the plugins but was disabled, keeping the previous version activated. |
Download and install |
@CarolinaOP I have now adjusted our build action workflow and this shouldnt be an issue. please proceed with testing further :) |
Review completed — everything is working well overall, though the error messages could be refined. |
🔄 Version Switching Functionality Implementation
This PR introduces comprehensive version switching functionality in the Code Snippets plugin settings, enabling users to safely switch between different plugin versions directly from the WordPress admin interface.
✨ Features Implemented
🎛️ New Settings Section
Settings > Snippets Settings > Version
)🔄 Version Switching Interface
🚀 Performance & Caching
🔐 Security & Safety
update_plugins
)🎨 User Experience
🧪 Testing Steps
📋 Prerequisites
1️⃣ Settings Access
2️⃣ Version Selection Flow
3️⃣ Cache Refresh Mechanism
4️⃣ Successful Version Switch
5️⃣ Error Handling
6️⃣ Concurrent Operation Prevention
7️⃣ Input Validation
# Test Steps: 1. Use dev tools to modify dropdown values 2. Submit invalid version 3. Verify rejection Expected: Server-side validation rejects invalid versions with error message.
8️⃣ CSRF Protection
📊 Expected Results
✅ Success Indicators
🔍 Code Review Focus Areas
📁 File Changes
src/php/settings/version-switch.php
: Complete version switching logicsrc/css/settings.scss
: UI styling and responsive design