Make WordPress Core

Changeset 61788

Timestamp:
03/03/2026 04:21:55 AM (2 days ago)
Author:
peterwilsoncc
Message:

Real-time collaboration: Slash meta key/values for updates and deletes.

Slashes the meta key and meta values when adding or deleting meta data in the WP_Sync_Post_Meta_Storage class for real time collaboration.

Props peterwilsoncc, westonruter.
Fixes #64783.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/collaboration/class-wp-sync-post-meta-storage.php

    r61689 r61788  
    8686        );
    8787
    88         return (bool) add_post_meta( $post_id, self::SYNC_UPDATE_META_KEY, $envelope, false );
     88        return (bool) add_post_meta( $post_id, , false );
    8989    }
    9090
     
    163163
    164164        // update_post_meta returns false if the value is the same as the existing value.
    165         update_post_meta( $post_id, self::AWARENESS_META_KEY, $awareness );
     165        update_post_meta( $post_id, );
    166166        return true;
    167167    }
     
    306306
    307307        // Remove all updates for the room and re-store only those that are newer than the cursor.
    308         if ( ! delete_post_meta( $post_id, self::SYNC_UPDATE_META_KEY ) ) {
     308        if ( ! delete_post_meta( $post_id, ) ) {
    309309            return false;
    310310        }
Note: See TracChangeset for help on using the changeset viewer.