Changeset 54338
- Timestamp:
- 09/27/2022 06:55:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-community-events.php
r54133 r54338 354 354 */ 355 355 public function get_cached_events() { 356 $cached_response = get_site_transient( $this->get_events_transient_key( $this->user_location ) ); 357 356 $transient_key = $this->get_events_transient_key( $this->user_location ); 357 if ( ! $transient_key ) { 358 return false; 359 } 360 361 $cached_response = get_site_transient( $transient_key ); 358 362 if ( isset( $cached_response['events'] ) ) { 359 363 $cached_response['events'] = $this->trim_events( $cached_response['events'] );
Note: See TracChangeset
for help on using the changeset viewer.