Ticket #40702: 40702-docs-cs.diff
File 40702-docs-cs.diff, 1.7 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/class-wp-community-events.php
239 239 * @access protected 240 240 * @since 4.8.0 241 241 * 242 * @param string 242 * @param string $address The IP address that should be anonymized. 243 243 * @return bool|string The anonymized address on success; the given address 244 244 * or false on failure. 245 245 */ … … 269 269 * @access protected 270 270 * @since 4.8.0 271 271 * 272 * @param array 272 * @param array $location Should contain 'latitude' and 'longitude' indexes. 273 273 * @return bool|string false on failure, or a string on success. 274 274 */ 275 275 protected function get_events_transient_key( $location ) { … … 364 364 */ 365 365 protected function trim_events( $response_body ) { 366 366 if ( isset( $response_body['events'] ) ) { 367 $current_timestamp = current_time( 'timestamp' );367 $current_timestamp = current_time( 'timestamp' ); 368 368 369 369 foreach ( $response_body['events'] as $key => $event ) { 370 370 // Skip WordCamps, because they might be multi-day events. … … 401 401 * @since 4.8.0 402 402 * 403 403 * @param string $message A description of what occurred. 404 * @param array $de bugging_infoDetails that provide more context for the404 * @param array $details Details that provide more context for the 405 405 * log entry. 406 406 */ 407 407 protected function maybe_log_events_response( $message, $details ) {