From b242dce48e9661aed33b4d9904078558e2706eab Mon Sep 17 00:00:00 2001 From: chriszarate Date: Wed, 18 Feb 2026 22:42:07 -0500 Subject: [PATCH 1/2] Add cap check for single taxonomy term entities --- .../wordpress-7.0/class-wp-http-polling-sync-server.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/compat/wordpress-7.0/class-wp-http-polling-sync-server.php b/lib/compat/wordpress-7.0/class-wp-http-polling-sync-server.php index a92747fde386e1..7328841e81fd77 100644 --- a/lib/compat/wordpress-7.0/class-wp-http-polling-sync-server.php +++ b/lib/compat/wordpress-7.0/class-wp-http-polling-sync-server.php @@ -275,6 +275,12 @@ private function can_user_sync_entity_type( string $entity_kind, string $entity_ return current_user_can( 'edit_post', absint( $object_id ) ); } + // Handle single taxonomy term entities with a defined object ID. + if ( 'taxonomy' === $entity_kind && is_numeric( $object_id ) ) { + $taxonomy = get_taxonomy( $entity_name ); + return isset( $taxonomy->cap->assign_terms ) && current_user_can( $taxonomy->cap->assign_terms ); + } + // All of the remaining checks are for collections. If an object ID is // provided, reject the request. if ( null !== $object_id ) { From f0993d8499ddddec6aaad0301338ff71e843cb37 Mon Sep 17 00:00:00 2001 From: chriszarate Date: Wed, 18 Feb 2026 23:03:56 -0500 Subject: [PATCH 2/2] Add to backport changelog --- backport-changelog/7.0/10894.md | 1 + 1 file changed, 1 insertion(+) diff --git a/backport-changelog/7.0/10894.md b/backport-changelog/7.0/10894.md index 6694148cf3f57f..5cfc1b6e5802e4 100644 --- a/backport-changelog/7.0/10894.md +++ b/backport-changelog/7.0/10894.md @@ -3,3 +3,4 @@ https://github.com/WordPress/wordpress-develop/pull/10894 * https://github.com/WordPress/gutenberg/pull/75366 * https://github.com/WordPress/gutenberg/pull/75681 * https://github.com/WordPress/gutenberg/pull/75682 +* https://github.com/WordPress/gutenberg/pull/75708