Changeset 9675 for sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/official-wordpress-events.php
- Timestamp:
- 04/01/2020 03:32:01 PM (5 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
r9662 r9675 367 367 368 368 case '_venue_coordinates': 369 if ( isset( $value->latitude, $value->longitude ) ) { 369 if ( rest_sanitize_boolean( $wordcamp->{'Virtual event only'} ) ) { 370 // Online events don't have coordinates, so we fake them for now. The fake value 371 // needs to pass an `empty` check, so we use 1 instead of 0. 372 // @todo This should be replaced with however we locate online events. 373 $event['latitude'] = 1; 374 $event['longitude'] = 1; 375 } elseif ( isset( $value->latitude, $value->longitude ) ) { 370 376 $event['latitude'] = $value->latitude; 371 377 $event['longitude'] = $value->longitude;
Note: See TracChangeset
for help on using the changeset viewer.