Skip to content

Backport the three info abilities from WordPress 6.9 - #36

Open
euvoor wants to merge 2 commits into
WordPress:mainfrom
euvoor:backport/wp69-info-abilities
Open

euvoor wants to merge 2 commits into
WordPress:mainfrom
euvoor:backport/wp69-info-abilities

Conversation

@euvoor

@euvoor euvoor commented Nov 27, 2026 •

Copy link
Copy Markdown

Closes #34.

This adds core/get-site-info, core/get-user-info, and core/get-environment-info to the package manifest. If WordPress already provides an ability, the registrar keeps the native instance. The package copies follow the 6.9.0 registrations, including the original permissions and REST visibility. In particular, the 6.9 user-info ability is available to the signed-in user and is excluded from REST.

WordPress 6.9 defined these abilities with procedural registration calls. The new coreify profiles round-trip those calls against excerpts from the 6.9.0 release, including the site fields shared by the schemas and the execute callback.

I tested both registration paths on WordPress 6.9.11, 7.1.5, and 7.2 RC2, on single-site and multisite installs. All three native ability objects kept their identity when the registrar ran. With Core registration disabled, the package supplied all three. On 6.9.11 I also compared the native and backported schemas, permissions, results, and errors. All 62 assertions passed on each install type.

The full 6.9.11 single-site suite ran 292 tests with 11 warnings, two skips, and no failures. CI for 146eff4 runs the full stable and trunk PHPUnit suites and the package checks.

@euvoor
euvoor requested a review from a team as a code owner November 27, 2026 10:25
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: euvoor <euvoor@git.wordpress.org>
Co-authored-by: nikmclaughlin <nikskyverge@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub or WordPress.org user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

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.

Backport core abilities from WP 6.9

1 participant