Skip to content

Commit 81bd3eb

Browse files
committed
Restore comment re: always returning true.
1 parent 088548b commit 81bd3eb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ public function set_awareness_state( string $room, array $awareness ): bool {
179179
return false;
180180
}
181181

182+
// set_transient() can return false if the value is the same as the existing value, which is considered a success regardless.
182183
set_transient( $this->get_awareness_transient_key( $post_id ), $awareness, HOUR_IN_SECONDS );
183184
return true;
184185
}

0 commit comments

Comments
 (0)