Skip to content

feat(wordpress): 1.2.1 lists Site Editor templates, patterns and menus in the PDF links report - #56

Merged
bendersej merged 7 commits into
mainfrom
P040-03-wp-plugin-full-scan
Sep 29, 2026
Merged

bendersej merged 7 commits into
mainfrom
P040-03-wp-plugin-full-scan

Conversation

@bendersej

@bendersej bendersej commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Background

The settings page's PDF links report (1.2.0) reads only pages and posts. On a block theme, the home page, header, footer and menus live in the Site Editor, so their PDF links open in SimplePDF but were missing from the report.

Changes

  • The report lists every PDF link visitors can reach: published pages and posts, drafts or private pages picked in "Where it runs", and the Site Editor templates, template parts, patterns and menus the live site actually shows
  • Usage is resolved with core's get_block_templates() (theme files included): templates in effect (picker templates only when a reachable page uses them), then a worklist that follows template parts, registered patterns, synced patterns and menus at any depth, with the newest-menu fallback for a navigation block without a menu; patterns and menus inserted in pages are found in one pre-filtered scan
  • One row per PDF link (Page or template | PDF | Opens in), 20 pages or templates per table page, row-group headers for screen readers
  • "Only on pages I pick" is stated once in the header; site-part links read "Picked pages" and the title adds "N more on picked pages"; nothing picked turns the header orange
  • The readme's External services section is three plain sentences plus the terms and privacy links
  • Version 1.2.1

Notes

  • Verified in WordPress Playground on Twenty Twenty-Five (including its uncustomized header, whose menu sits in a registered pattern) with 2,000+ seeded pages: settings page median ~735 ms against ~663 ms for 1.2.0. Screenshots are on the internal PR.

…nd menus in the PDF links report, 20 rows per page
…ith picked pages, only what the site shows, Edit link guard)
…inks anywhere, ID tiebreak, cap copy), plain External services
…er PDF link, picked mode stated once in the header
…and synced patterns and menus at any depth; hierarchy templates kept; nav fallback edges; honest picked title; picked pages first; a11y row headers)
…e patterns and menus pages insert (settings page +60 ms over 1.2.0, from +200); picked drafts count; one owner for picked pages
@bendersej
bendersej merged commit 6e633c8 into main Sep 29, 2026
3 checks passed
@bendersej
bendersej deleted the P040-03-wp-plugin-full-scan branch September 29, 2026 09:10
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.

1 participant