Release version 0.1.3.3#504
Conversation
randhirinsta
commented
May 19, 2026
- Added: WordPress core rollback support — the plugin now snapshots the current core version before every core upgrade and can roll back to that recorded version on request.
- New LAST_CORE_VERSION_OPTION + get/set snapshot helpers - update() routes type=core with allow_downgrade/action=rollback to core_downgrade() - core_updater() writes pre-upgrade snapshot before Core_Upgrader::upgrade() - core_downgrade() verifies snapshot, HEAD-checks the WP.org package URL, rewrites the update_core transient via filters, and DELEGATES to core_updater() — single Core_Upgrader path, strictly DRY - Filters always removed before returning, even on failure
- Bump version to 0.1.3.3 in plugin header, INSTAWP_PLUGIN_VERSION, and readme.txt Stable tag - readme.txt: add 0.1.3.3 (Beta) changelog entry for core rollback - doc/core-update.md: document REST payload, the instawp_last_core_version snapshot, and the core_downgrade → core_updater DRY flow - Updater.php: write pre-upgrade snapshot in core_updater() before Core_Upgrader::upgrade(); drop the unreliable get_bloginfo() before/after equality check ($wp_version is a cached PHP global Core_Upgrader does not refresh in-process) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The core rollback edits previously committed here belong upstream in instawp/connect-helpers (PR InstaWP/connect-helpers#17, v1.1.1). After that PR merges, `composer update instawp/connect-helpers` will restore these changes here as a regenerated vendor/ — sourced from the helpers package instead of edited in place. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pulls upstream changes resolved by `composer update`:
- instawp/connect-helpers dev-main d864992 → e886995
(PR InstaWP/connect-helpers#17 — core rollback via
core_downgrade + pre-upgrade wp_options snapshot, plus the
dropped get_bloginfo equality check in core_updater)
Incidental transitive patch bumps composer also resolved against the
existing composer.json constraints (no committed composer.lock —
\`*.lock\` is gitignored, so every install is a fresh resolution):
- phpseclib/phpseclib 3.0.50 → 3.0.52
- wp-cli/wp-config-transformer v1.4.5 → v1.4.6
vendor/composer/installed.json and installed.php regenerated to match.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
feat(core): WordPress core update rollback (0.1.3.3)
Runs composer update for instawp/connect-helpers, pulling in the core_updater transient-refresh fix (connect-helpers PR #18): core updates now force a fresh wp_version_check() before find_core_update(), so an update right after a rollback succeeds on the first attempt instead of failing with "WordPress is at the latest version.". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Finalises the 0.1.3.3 changelog heading (Beta → 19 May 2026). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
chore(deps): regenerate connect-helpers vendor
|
Claude finished @randhirinsta's task —— View job PR Review: Core Rollback FeatureContext loaded:
Review Checklist:
✅ Overall Assessment: APPROVED with Minor RecommendationsThis is a well-architected, secure, and maintainable implementation of WordPress core rollback functionality. The code demonstrates excellent adherence to the project's architectural principles and WordPress best practices. 🏗️ Architectural Principles Compliance: EXCELLENT✅ Data Layer Abstraction
✅ DRY (Don't Repeat Yourself)
✅ SSOT (Single Source of Truth)
✅ SoC (Separation of Concerns)
✅ Proper Abstraction
🔒 Security Analysis: SECURE✅ Input Validation
✅ Output Escaping
✅ External Resource Validation
✅ Data Integrity
⚡ Performance Analysis: OPTIMIZED✅ Minimal Database Impact
✅ Network Efficiency
✅ Memory Management
📝 WordPress Coding Standards: COMPLIANT✅ Style & Structure
✅ WordPress APIs
🛡️ Error Handling: ROBUST✅ Comprehensive Edge Cases
✅ Proper Logging
✅ Graceful Degradation
🎯 Minor Recommendations
📋 Testing RecommendationsCritical Paths to Test:
Edge Cases:
✅ Final Verdict: EXCELLENT IMPLEMENTATIONThis PR demonstrates exemplary WordPress plugin development with:
The implementation correctly addresses all project requirements while maintaining the high standards expected for production WordPress plugins. |