Skip to content

Fix line endings pr 92 - #99

Merged
Zodiac1978 merged 8 commits into
developfrom
fix-line-endings-pr-92
Aug 15, 2026
Merged

Fix line endings pr 92#99
Zodiac1978 merged 8 commits into
developfrom
fix-line-endings-pr-92

Conversation

@Zodiac1978

Copy link
Copy Markdown
Owner

Fixes #92 #30 #56

apermo and others added 8 commits April 14, 2026 15:42
plugins_api() can return a valid object (not WP_Error)
that lacks expected properties like `version`. This
happens with plugins like Search & Filter Pro whose
slug collides with a wp.org entry returning invalid
data.

Guard against this in two places:
- assemble_plugin_report(): reject API responses
  missing `version` before caching as repo_info
- render_table_row(): add isset() check on version,
  consistent with tested/rating/last_updated guards

Fixes #56
Move the isset(version) check inside the non-error
branch so the else is only reached for WP_Error,
letting PHPStan narrow the type correctly.
# Conflicts:
#	rt-plugin-report.php
@Zodiac1978
Zodiac1978 merged commit 62d5777 into develop Aug 15, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants