Make WordPress Core

Changeset 61704


Ignore:
Timestamp:
02/20/2026 12:23:57 PM (2 months ago)
Author:
ellatrix
Message:

Real-time collaboration: fix comment syncing in site editor.

Developed in https://github.com/WordPress/wordpress-develop/pull/10981.
See also https://github.com/WordPress/gutenberg/pull/75746.

Props alecgeatches, czarate.
See #64622.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/collaboration/class-wp-http-polling-sync-server.php

    r61689 r61704  
    279279        }
    280280
     281        // Handle single comment entities with a defined object ID.
     282        if ( 'root' === $entity_kind && 'comment' === $entity_name && is_numeric( $object_id ) ) {
     283            return current_user_can( 'edit_comment', (int) $object_id );
     284        }
     285
    281286        // All the remaining checks are for collections. If an object ID is provided,
    282287        // reject the request.
Note: See TracChangeset for help on using the changeset viewer.