Changeset 13047
- Timestamp:
- 12/11/2023 06:03:05 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
r12973 r13047 1593 1593 $sotw = array( 1594 1594 'type' => 'wordcamp', 1595 'title' => 'State of the Word ',1595 'title' => 'State of the Word - Watch Now', // Remove "watch now" next year, see date note below. 1596 1596 // `utm_source` is `private` because it would have to be set by the WP install, we don't need it, and tracking it could be a privacy concern. 1597 1597 'url' => 'https://wordpress.org/state-of-the-word/?utm_source=private&utm_medium=events_widget&utm_campaign=sotw2023', 1598 1598 'meetup' => '', 1599 1599 'meetup_url' => '', 1600 'date' => '2023-12-11 15:00:00', 1601 'end_date' => '2023-12-11 16:30:00', 1602 'start_unix_timestamp' => strtotime( '2023-12-11 15:00:00' ) - $madrid_utc_offset, 1603 'end_unix_timestamp' => strtotime( '2023-12-11 16:30:00' ) - $madrid_utc_offset, 1600 1601 // This year they requested the event to show up for a few days after it was over. The API does that no 1602 // problem, but in Core `WP_Community_Events::trim_events()` will remove it. This is a hack to make the 1603 // event show up, but it will probably confuse people about when it actual was, because the date will be 1604 // wrong. Don't do this again next year, only show the event in the lead up to it. The pinned News item 1605 // will still show it to people after the event. 1606 'date' => '2023-12-14 15:00:00', 1607 'end_date' => '2023-12-14 16:30:00', 1608 'start_unix_timestamp' => strtotime( '2023-12-14 15:00:00' ) - $madrid_utc_offset, 1609 'end_unix_timestamp' => strtotime( '2023-12-14 16:30:00' ) - $madrid_utc_offset, 1604 1610 1605 1611 'location' => array( … … 1610 1616 ), 1611 1617 ); 1612 1613 if ( $current_time > $sotw['start_unix_timestamp'] ) {1614 $sotw['title'] .= ' - Watch Now';1615 }1616 1618 1617 1619 if ( $current_time > strtotime( 'December 9, 2023' ) && $current_time < strtotime( 'December 14, 2023' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.