fix: preserve exporter incomplete objects#1423
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds a guard clause to ChangesIncomplete object handling
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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
__PHP_Incomplete_Classvalues in the site exporter database search/replace path before object property mutation.Verification
php -l inc/site-exporter/database/class-replace.phpphp -l tests/WP_Ultimo/Site_Exporter_Test.phpvendor/bin/phpcs inc/site-exporter/database/class-replace.php tests/WP_Ultimo/Site_Exporter_Test.phpgit diff --checkwarnings=0 old=yes new=yesNot Run
vendor/bin/phpunit --filter test_recursive_unserialize_replace_preserves_incomplete_objectsis blocked locally because/tmp/wordpress-tests-lib/includes/functions.phpis missing.aidevops.sh v3.20.58 plugin for OpenCode v1.17.4 with gpt-5.5
Summary by CodeRabbit
Bug Fixes
Tests