fix: guard post signup tracking without post object#1420
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)
📝 WalkthroughWalkthroughThe ChangesNullable post parameter and safety guard
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 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: |
🔨 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
transition_post_statusfires after a failed post insert.Verification
php -l inc/managers/class-post-signup-activity-manager.php && php -l tests/WP_Ultimo/Managers/Post_Signup_Activity_Manager_Test.phpvendor/bin/phpcs inc/managers/class-post-signup-activity-manager.php tests/WP_Ultimo/Managers/Post_Signup_Activity_Manager_Test.phpgit diff --check -- inc/managers/class-post-signup-activity-manager.php tests/WP_Ultimo/Managers/Post_Signup_Activity_Manager_Test.phpvendor/bin/phpunit --filter Post_Signup_Activity_Manager_Testcould not run locally because/tmp/wordpress-tests-lib/includes/functions.phpis not installed.aidevops.sh v3.20.58 plugin for OpenCode v1.17.4 with gpt-5.5 spent 21m and 237,343 tokens on this with the user in an interactive session.
Summary by CodeRabbit
Bug Fixes
Tests