Repository navigation
Fix PDF sitemap edge cases and harden release workflows - #9
Merged
Merged
Conversation
…r, fix XSL comment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Filip Ilic <ilic.filip@gmail.com>
Contributor
|
Pushed a follow-up commit (860a86d) on top of this PR:
Tested locally: phpcs and lint pass, the index link is correct with normal and Also noting: PDFs attached to private/draft posts are still listed, as before. This PR documents that as intended in the FAQ, so worth confirming that's what we want. |
ilicfilip
approved these changes
Nov 16, 2026
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.
Sites with no PDFs currently rescan uploads even when an empty result is cached, and missing or unreadable directories can break sitemap generation. This change reuses empty caches, handles failed directory opens, escapes XML output, and prevents direct access to the plugin file.
Filesystem discovery remains intentional: the documentation explains that PDFs are included independently of media-library registration or parent-post visibility. The plugin also recognizes uppercase extensions, clears its cache when PDF attachments are deleted, uses the home URL for the sitemap index link, and resets generation state between calls.
The deployment workflow pins checkout and WordPress.org deployment actions to verified commit SHAs and replaces the archived release action with GitHub CLI. All workflows default to read-only repository access, with write access limited to the GitHub release job. Scheduled dependency scans now target this repository, and the workflow has been re-enabled after GitHub disabled it for inactivity. PHP_CodeSniffer is explicitly required at 3.13.6 or later in the 3.x series, with the lock file updated to the patched 3.13.6 release for CVE-2026-67434.
Validation:
git diff --checkpass.