Silver Assist Post Revalidate v1.3.0
What's New in v1.3.0
Added
- Comprehensive Integration Tests (Phase 3): Added 20 new integration tests for WordPress compatibility
- Asset Management Tests (
AssetsLoading_Test.php): 8 tests verifying CSS/JS loading, versioning, localization- Debug logs CSS/JS load only on settings page
- Assets not loaded on other admin pages
- Version strings for cache busting
- Localized script data structure and nonces
- jQuery dependency declarations
- Status Transitions Tests (
StatusTransitions_Test.php): 6 tests for post status workflows- Publish→Trash and Trash→Publish trigger revalidation
- Draft→Draft does NOT trigger revalidation
- Pending→Publish and Future→Publish trigger revalidation
- Hook argument validation (3 args, priority 10)
- Gutenberg Integration Tests (
GutenbergIntegration_Test.php): 6 tests for Block Editor compatibility- Multiple rapid saves trigger only ONE revalidation (cooldown)
- Meta updates during save do NOT duplicate revalidation
- Taxonomy saves during post save do NOT duplicate
processed_postsarray prevents same-request duplicates- Block editor autosaves filtered correctly
- Classic Editor behavior matches Block Editor
- Asset Management Tests (
Changed
- Test Suite: Expanded from 106 to 126 tests (47 Unit + 79 Integration)
- Test Coverage: All Phase 3 WordPress integration tests completed
- Test Execution: Full suite runs in ~6 seconds with 100% pass rate
Technical Details
- All integration tests use HTTP mocking (
pre_http_requestfilter) for fast execution - Proper test isolation with setUp/tearDown cleanup
- Manual hook triggering with
do_actionfor precise control - Asset tearDown cleanup prevents cross-test contamination
- Status transition tests handle WordPress state changes correctly
Installation
- Download
silver-assist-post-revalidate-v1.3.0.zip - Go to WordPress Admin > Plugins > Add New > Upload Plugin
- Choose the downloaded ZIP file and click "Install Now"
- Activate the plugin
- Configure your revalidation endpoint at Settings > Post Revalidate
Automatic Updates
This plugin includes automatic update functionality. You'll receive notifications in your WordPress admin when new versions are available.
Requirements
- WordPress 6.5 or higher
- PHP 8.3 or higher