Repository navigation
Entity Actions: Remove the route-collision check, as in core - #87165
Conversation
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the ⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Should insert content using the inline inserter in a navigation superseded by the traversal discharges to idle in
|
|
@priethor @jorgefilipecosta Should this be backported to the The same PHPUnit failure is happening on Sorry if this is a silly question, I'm not sure what is needed to be done for the compat patches. cc @Mamaduka |
|
Thanks for the ping, @peterwilsoncc! We usually backport test and env fixes to make the checks green. They aren't automatically synced with core, so nothing can "leak" into the develop repo. |
|
I just cherry-picked this PR to the wp/7.2 branch to get it included in the next release: ed28518 |
|
Thanks both, good catch! |
What
Fixes the
Tests_REST_Entity_Actions_Controller::test_the_route_of_a_taxonomy_with_the_same_base_is_keptPHPUnit failure on trunk (run) by syncing core 65725 (WordPress/wordpress-develop#16067).Core no longer skips the
/wp/v2/entity-actionsroute when a post type or taxonomy usesentity-actionsas its REST base, so its controller registers the route anyway, and our test, which expected both controllers to skip it, finds an extra handler. This removes the same check from the 7.2 compat controller, along with its test, so the plugin behaves like core.Testing Instructions
Not applicable.
I used Claude to help implement these changes. I guided the work, then tested and reviewed the result.