Skip to content

Commit d904252

Browse files
committed
Rename method for accuracy.
1 parent 235d84b commit d904252

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static function ( $update ): bool {
123123
return $updates;
124124
}
125125

126-
public function get_awareness_cache_key( $post_id ) {
126+
public function get_awareness_transient_key( $post_id ) {
127127
$cache_key = self::AWARENESS_TRANSIENT_PREFIX . '_' . $post_id;
128128
if ( strlen( $cache_key ) <= 172 ) {
129129
// Safe length for a transient key.
@@ -147,7 +147,7 @@ public function get_awareness_state( string $room ): array {
147147
return array();
148148
}
149149

150-
$awareness = get_transient( $this->get_awareness_cache_key( $post_id ) );
150+
$awareness = get_transient( $this->get_awareness_transient_key( $post_id ) );
151151

152152
if ( ! is_array( $awareness ) ) {
153153
return array();
@@ -171,7 +171,7 @@ public function set_awareness_state( string $room, array $awareness ): bool {
171171
return false;
172172
}
173173

174-
set_transient( $this->get_awareness_cache_key( $post_id ), $awareness, HOUR_IN_SECONDS );
174+
set_transient( $this->get_awareness_transient_key( $post_id ), $awareness, HOUR_IN_SECONDS );
175175
return true;
176176
}
177177

0 commit comments

Comments
 (0)