Skip to content

Editor: Update entity action label test expectations (backport GB #85396) - #14808

Draft
ciampo wants to merge 1 commit into
WordPress:trunkfrom
ciampo:codex/backport-85396-action-labels
Draft

ciampo wants to merge 1 commit into
WordPress:trunkfrom
ciampo:codex/backport-85396-action-labels

Conversation

@ciampo

@ciampo ciampo commented Oct 23, 2026 •

Copy link
Copy Markdown

Backports the PHP test updates for WordPress/gutenberg#85396.

Core copies the action definitions from the Gutenberg build. That change supplies Trash as the base label and adds a translated ellipsis when the action appears in a menu. This PR updates the registered-action assertion and both translation hooks in the default-text-domain test to expect Trash.

Keep this PR as a draft until Core's Gutenberg pin includes WordPress/gutenberg#85396. The current pin still supplies Trash…, so these test expectations require that sync.

Testing Instructions

After syncing a Gutenberg build containing WordPress/gutenberg#85396, run:

npm run test:php -- --filter Tests_Entity_Actions_RegisterCoreEntityActions

The registered trash action should have the label Trash, and its translation should use the default text domain.

Local verification

PHP syntax and coding standards passed. Runtime PHPUnit verification is blocked locally because Docker has exhausted its network address pools.

Trac ticket: https://core.trac.wordpress.org/ticket/66343

Use of AI Tools

AI assistance: Yes. Codex ported the test expectations and drafted this description.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

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