- Timestamp:
- 10/14/2020 06:19:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-community-events.php
r49145 r49146 78 78 * 79 79 * @since 4.8.0 80 * @since 5.6.0 Response no longer contains formatted date field. They're added 81 * in `wp.communityEvents.populateDynamicEventFields()` now. 80 82 * 81 83 * @param string $location_search Optional. City name to help determine the location. … … 166 168 167 169 $response_body['events'] = $this->trim_events( $response_body['events'] ); 168 $response_body = $this->format_event_data_time( $response_body );169 170 170 171 return $response_body; … … 345 346 * 346 347 * @since 4.8.0 348 * @since 5.6.0 Response no longer contains formatted date field. They're added 349 * in `wp.communityEvents.populateDynamicEventFields()` now. 347 350 * 348 351 * @return array|false An array containing `location` and `events` items … … 356 359 } 357 360 358 return $ this->format_event_data_time( $cached_response );361 return $cached_response; 359 362 } 360 363 … … 373 376 */ 374 377 protected function format_event_data_time( $response_body ) { 378 _deprecated_function( 379 __METHOD__, 380 '5.6.0', 381 'This is no longer used by Core, and only kept for backwards-compatibility.' 382 ); 383 375 384 if ( isset( $response_body['events'] ) ) { 376 385 foreach ( $response_body['events'] as $key => $event ) {
Note: See TracChangeset
for help on using the changeset viewer.