Making WordPress.org

Changeset 10527


Ignore:
Timestamp:
12/16/2020 10:01:13 PM (6 years ago)
Author:
iandunn
Message:

Events: Pin the 2020 State of the Word address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/index.php

    r10518 r10527  
    234234                $events = remove_duplicate_events( $events );
    235235
     236                // tmp remove, only here b/c last minute
     237                if ( time() < strtotime( 'December 18, 2020' ) ) {
     238                        array_unshift( $events, array(
     239                                'type'                 => 'wordcamp',
     240                                'title'                => 'State of the Word',
     241                                'url'                  => 'https://wordpress.org/news/2020/12/state-of-the-word-2020/',
     242                                'meetup'               => '',
     243                                'meetup_url'           => '',
     244                                'date'                 => '2020-12-17 00:00:00',
     245                                'end_date'             => '2020-12-17 23:00:00',
     246                                'start_unix_timestamp' => 1608195600,
     247                                'end_unix_timestamp'   => 1608267600,
     248
     249                                'location' => array(
     250                                        'location'  => 'Online',
     251                                        'country'   => 'US',
     252                                        'latitude'  => 29.768241024468665,
     253                                        'longitude' => -95.36765276500797,
     254                                ),
     255                        ) );
     256                }
     257
    236258                // Internal location data cannot be exposed in the response, see get_location().
    237259                if ( isset( $location['internal'] ) && $location['internal'] ) {
Note: See TracChangeset for help on using the changeset viewer.