Skip to content

Commit a850382

Browse files
committed
Simplify awareness state caching by using the Transients API.
1 parent a9bf03a commit a850382

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ public function get_awareness_state( string $room ): array {
109109
if ( ! is_array( $awareness ) ) {
110110
return array();
111111
}
112+
113+
return array_values( $awareness );
112114
}
113115

114116
/**

0 commit comments

Comments
 (0)