Skip to content

Draft read-only plugin and theme inventory abilities - #30

Draft
euvoor wants to merge 1 commit into
WordPress:mainfrom
euvoor:feat/read-only-inventory
Draft

euvoor wants to merge 1 commit into
WordPress:mainfrom
euvoor:feat/read-only-inventory

Conversation

@euvoor

@euvoor euvoor commented Nov 19, 2026 •

Copy link
Copy Markdown

Related to #17 and #18.

This draft adds two experimental read-only abilities in the site category. The names use the provisional wp/ namespace.

  • wp/plugins-query returns each visible plugin’s Core REST identifier, name, version, and activation status. An exact identifier and a status filter can be combined. Network activation is reported as network-active on multisite.
  • wp/themes-query returns the stylesheet, template, plain-text name, version, and status. A contributor can request the active theme by status or exact stylesheet. Listing other themes uses Core’s collection permissions.

Both queries use Core’s REST controllers for permissions and collection visibility. The returned total counts only matching, visible rows. The inputs address the current site.

For review, I’d especially welcome feedback on the proposed fields and names before expanding the scope to other theme metadata.

Validation

  • All six upstream CI jobs passed on 02d86d9, including the stable and trunk PHPUnit jobs.
  • The full suite ran 294 cases per version with zero failures on WordPress 7.1.5 and trunk (7.2 RC2). Two cases were skipped on stable and three on trunk. Both warning types reproduced on the parent revision.
  • All six inventory tests passed on multisite on both versions, with 78 assertions per run. The package’s multi-copy loader harness passed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant