Repository navigation
Conversation
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.
Related to #17 and #18.
This draft adds two read-only inventory queries for the current site. Both use the
core-experimental/namespace introduced in #33.core-experimental/plugins-queryreturns each visible plugin’s Core REST identifier, name, version, and activation status. Callers can filter by exact identifier and status, includingnetwork-activeon multisite.core-experimental/themes-queryreturns the stylesheet, template, name, version, and status. Callers can request the active theme by status or exact stylesheet. Listing other themes uses Core’s collection permissions.Both queries use the Core REST controllers to check what the caller can see. The total counts only visible entries that match the filters.
I’d welcome feedback on the fields and filter names before adding more metadata.
Validation
All six inventory tests passed on WordPress 7.1.5 and 7.2 RC2 in both single-site and multisite mode. Each single-site run made 77 assertions and each multisite run made 80. The tests also check that the old
wp/names aren’t registered.Upstream CI for
ff64d14covers the full stable and trunk PHPUnit suites, coding standards, static analysis, manifest validation, and the coreify round trip.