Skip to content

Commit c8213d9

Browse files
committed
Add missing @SInCE markers
1 parent 5f2a6d6 commit c8213d9

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

src/wp-includes/collaboration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Injects the real-time collaboration setting into a global variable.
1111
*
12-
* @since 6.8.0
12+
* @since 7.0.0
1313
*
1414
* @access private
1515
*/

src/wp-includes/collaboration/class-wp-http-polling-sync-server.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ private function can_user_sync_entity_type( string $entity_kind, string $entity_
297297
/**
298298
* Processes and stores an awareness update from a client.
299299
*
300+
* @since 7.0.0
301+
*
300302
* @param string $room Room identifier.
301303
* @param int $client_id Client identifier.
302304
* @param array<string, mixed>|null $awareness_update Awareness state sent by the client.
@@ -345,6 +347,8 @@ private function process_awareness_update( string $room, int $client_id, ?array
345347
/**
346348
* Processes a sync update based on its type.
347349
*
350+
* @since 7.0.0
351+
*
348352
* @param string $room Room identifier.
349353
* @param int $client_id Client identifier.
350354
* @param int $cursor Client cursor (marker of last seen update).
@@ -414,6 +418,8 @@ private function process_sync_update( string $room, int $client_id, int $cursor,
414418
/**
415419
* Adds an update to a room's update list via storage.
416420
*
421+
* @since 7.0.0
422+
*
417423
* @param string $room Room identifier.
418424
* @param int $client_id Client identifier.
419425
* @param string $type Update type (sync_step1, sync_step2, update, compaction).
@@ -444,6 +450,8 @@ private function add_update( string $room, int $client_id, string $type, string
444450
* Delegates cursor-based retrieval to the storage layer, then applies
445451
* client-specific filtering and compaction logic.
446452
*
453+
* @since 7.0.0
454+
*
447455
* @param string $room Room identifier.
448456
* @param int $client_id Client identifier.
449457
* @param int $cursor Return updates after this cursor.

src/wp-includes/collaboration/class-wp-sync-post-meta-storage.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@ class WP_Sync_Post_Meta_Storage implements WP_Sync_Storage {
2727
/**
2828
* Cache of cursors by room.
2929
*
30+
* @since 7.0.0
3031
* @var array<string, int>
3132
*/
3233
private array $room_cursors = array();
3334

3435
/**
3536
* Cache of update counts by room.
3637
*
38+
* @since 7.0.0
3739
* @var array<string, int>
3840
*/
3941
private array $room_update_counts = array();
4042

4143
/**
4244
* Singleton post ID for storing sync data.
4345
*
46+
* @since 7.0.0
4447
* @var int|null
4548
*/
4649
private static ?int $storage_post_id = null;
@@ -155,6 +158,8 @@ public function set_awareness_state( string $room, array $awareness ): bool {
155158
/**
156159
* Gets the meta key for a room's awareness state.
157160
*
161+
* @since 7.0.0
162+
*
158163
* @param string $room Room identifier.
159164
* @return string Meta key.
160165
*/
@@ -181,6 +186,8 @@ public function get_cursor( string $room ): int {
181186
/**
182187
* Gets the meta key for a room's updates.
183188
*
189+
* @since 7.0.0
190+
*
184191
* @param string $room Room identifier.
185192
* @return string Meta key.
186193
*/
@@ -191,6 +198,8 @@ private function get_room_meta_key( string $room ): string {
191198
/**
192199
* Gets or creates the singleton post for storing sync data.
193200
*
201+
* @since 7.0.0
202+
*
194203
* @return int|null Post ID.
195204
*/
196205
private function get_storage_post_id(): ?int {
@@ -234,6 +243,8 @@ private function get_storage_post_id(): ?int {
234243
/**
235244
* Gets the current time in milliseconds as a comparable time marker.
236245
*
246+
* @since 7.0.0
247+
*
237248
* @return int Current time in milliseconds.
238249
*/
239250
private function get_time_marker(): int {

0 commit comments

Comments
 (0)