- Timestamp:
- 11/21/2022 10:21:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
r11861 r12256 1588 1588 function pin_one_off_events( $events, $current_time ) { 1589 1589 1590 if ( $current_time < strtotime( 'December 17, 2021' ) ) { 1591 array_unshift( $events, array( 1590 if ( $current_time < strtotime( 'December 18, 2022' ) ) { 1591 $utc_offset = -5 * HOUR_IN_SECONDS; 1592 1593 $sotw = array( 1592 1594 'type' => 'wordcamp', 1593 1595 'title' => 'State of the Word', 1594 'url' => 'https://wordpress.org/news/202 1/11/state-of-the-word-2021/',1596 'url' => 'https://wordpress.org/news/2022/11/state-of-the-word-2022/', 1595 1597 'meetup' => '', 1596 1598 'meetup_url' => '', 1597 'date' => '202 1-12-14 17:00:00',1598 'end_date' => '202 1-12-14 19:00:00',1599 'start_unix_timestamp' => 1639519200,1600 'end_unix_timestamp' => 1639526400,1599 'date' => '2022-12-15 13:00:00', 1600 'end_date' => '2022-12-15 14:30:00', 1601 'start_unix_timestamp' => strtotime( '2022-12-15 13:00:00' ) - $utc_offset, 1602 'end_unix_timestamp' => strtotime( '2022-12-15 14:30:00' ) - $utc_offset, 1601 1603 1602 1604 'location' => array( … … 1606 1608 'longitude' => -95.36765276500797, 1607 1609 ), 1608 ) ); 1610 ); 1611 1612 array_unshift( $events, $sotw ); 1609 1613 } 1610 1614
Note: See TracChangeset
for help on using the changeset viewer.