Changeset 6814 for sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/official-wordpress-events.php
- Timestamp:
- 03/01/2018 06:59:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/official-wordpress-events.php
r6813 r6814 22 22 * Look at meetup-stats.php and see if any differences are relevant, or if there's anything else that'd be helpful in general 23 23 * Check non-latin characters, accents etc to make sure stored properly in db 24 * Add admin_notice to wordcamp post type to warn when coordinates missing. Also back-fill current ones that are missing.25 24 * Store wordcamp dates in UTC, and also store timezone? Would need to start collecting timezone for wordcamps and then back-fill old records 26 25 * … … 71 70 'type' => $event->type, 72 71 'source_id' => $event->source_id, 72 'status' => $event->status, 73 73 'title' => $event->title, 74 74 'url' => $event->url, … … 147 147 SELECT * 148 148 FROM `%s` 149 WHERE date_utc >= SUBDATE( CURRENT_DATE(), 1 ) 149 WHERE 150 date_utc >= SUBDATE( CURRENT_DATE(), 1 ) AND 151 status = 'scheduled' 150 152 ORDER BY date_utc ASC 151 153 LIMIT 300", … … 213 215 protected function get_wordcamp_events() { 214 216 $request_params = array( 215 'status' => 'wcpt-scheduled',217 'status' => array( 'wcpt-scheduled', 'wcpt-cancelled' ), 216 218 'per_page' => 100, 217 219 // Note: With the number of WordCamps per year growing fast, we may need to batch requests in the near future, like we do for meetups … … 242 244 $event = array( 243 245 'source_id' => $wordcamp->id, 246 'status' => 'wcpt-scheduled' === $wordcamp->status ? 'scheduled' : 'cancelled', 244 247 'type' => 'wordcamp', 245 248 'title' => $wordcamp->title->rendered, … … 319 322 foreach ( $groups as $group_batch ) { 320 323 $request_url = sprintf( 321 '%s2/events?group_id=%s&time=0,3m&page=%d&key=%s ',324 '%s2/events?group_id=%s&time=0,3m&page=%d&key=%s&status=upcoming,cancelled', 322 325 self::MEETUP_API_BASE_URL, 323 326 implode( ',', $group_batch ), … … 365 368 'type' => 'meetup', 366 369 'source_id' => $meetup->id, 370 'status' => 'upcoming' === $meetup->status ? 'scheduled' : 'cancelled', 367 371 'title' => $meetup->name, 368 372 'url' => $meetup->event_url,
Note: See TracChangeset
for help on using the changeset viewer.