Repository navigation
Clear Plugin Check findings while retaining WordPress 4.7 compatibility - #308
Open
CodyReichert wants to merge 2 commits into
Open
CodyReichert wants to merge 2 commits into
CodyReichert wants to merge 2 commits into
Conversation
CodyReichert
marked this pull request as ready for review
October 12, 2026 00:49
creichert
approved these changes
Oct 12, 2026
There was a problem hiding this comment.
🟡 Changes recommended
Legacy-page count invalidation is not registered for non-admin post updates, allowing stale persistent counts.
1 open finding
What changed in this PR
Clears Plugin Check findings while preserving PHP 7.0.27 and WordPress 4.7 compatibility.
Changes:
- Adds legacy timezone handling, escaped headings, and a bundled fallback image.
- Replaces direct Legacy Pages queries with cached post counts.
- Expands compatibility tests and CI syntax coverage.
The linked six-job CI run passed, but cache invalidation misses non-admin write paths.
| File | Description |
|---|---|
.github/workflows/ci.yml |
Adds PHP 7.0 syntax coverage and test polyfills. |
CHANGELOG |
Documents unreleased compatibility changes. |
src/assets/img/default-property.jpg |
Adds the local fallback listing image. |
src/phpunit.xml |
Names the PHPUnit test suite. |
src/readme.txt |
Updates requirements and release notes. |
src/simply-rets-admin.php |
Uses cached post counts and adds invalidation. |
src/simply-rets-openhouses.php |
Adds legacy timezone support and heading escaping. |
src/simply-rets-renderer.php |
Escapes search heading tags. |
src/simply-rets-utils.php |
Configures the bundled fallback image URL. |
src/simply-rets.php |
Updates plugin compatibility headers. |
src/tests/bootstrap.php |
Repairs WordPress test initialization. |
src/tests/test-legacy-pages.php |
Tests count-cache behavior. |
src/tests/test-plugin-check-compatibility.php |
Tests timezone, headings, and fallback images. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The released plugin declared WordPress 3.0.1 support despite using newer core APIs, and Plugin Check reported 74 errors and 2 warnings. This change clears those findings while preserving rendered markup, filters, settings, shortcode behavior, and PHP 7.0.27 support.
Changes
Validation
Follow-up
A broader runtime/performance scan reports 27 existing warnings about global asset loading and scripts in the page head. These were absent from the supplied report. Changing asset-loading behavior requires separate compatibility review and is outside this cleanup. Live map interactions were not validated; map code is unchanged.
The commits were created through GitHub's automatically signed API; their valid GitHub signatures were verified.