WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/15/2017 09:43:36 AM (13 months ago)
Author:
obenland
Message:

Dashboard: Community events formatting improvements

Props Soean.
See #40702.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-community-events.php

    r40607 r40669  
    240240     * @since 4.8.0
    241241     *
    242      * @param  string      $address The IP address that should be anonymized.
     242     * @param  string $address The IP address that should be anonymized.
    243243     * @return bool|string The anonymized address on success; the given address
    244244     *                     or false on failure.
     
    270270     * @since 4.8.0
    271271     *
    272      * @param  array       $location Should contain 'latitude' and 'longitude' indexes.
     272     * @param  array $location Should contain 'latitude' and 'longitude' indexes.
    273273     * @return bool|string false on failure, or a string on success.
    274274     */
     
    289289     * @since 4.8.0
    290290     *
    291      * @param array    $events               Response body from the API request.
     291     * @param array    $events     Response body from the API request.
    292292     * @param int|bool $expiration Optional. Amount of time to cache the events. Defaults to false.
    293293     * @return bool true if events were cached; false if not.
     
    365365    protected function trim_events( $response_body ) {
    366366        if ( isset( $response_body['events'] ) ) {
    367             $current_timestamp = current_time('timestamp' );
     367            $current_timestamp = current_time( 'timestamp' );
    368368
    369369            foreach ( $response_body['events'] as $key => $event ) {
     
    401401     * @since 4.8.0
    402402     *
    403      * @param string $message        A description of what occurred.
    404      * @param array  $debugging_info Details that provide more context for the
    405      *                               log entry.
     403     * @param string $message A description of what occurred.
     404     * @param array  $details Details that provide more context for the
     405     *                        log entry.
    406406     */
    407407    protected function maybe_log_events_response( $message, $details ) {
Note: See TracChangeset for help on using the changeset viewer.