- Timestamp:
- 12/15/2020 06:24:56 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
r10475 r10518 38 38 defined( 'WEEK_IN_SECONDS' ) or define( 'WEEK_IN_SECONDS', 7 * DAY_IN_SECONDS ); 39 39 40 /* 41 * Increase range during COVID-19 to mitigate event deserts. 42 * 43 * This is just a guess, and needs to be re-evaluated before it expires. 44 */ 45 define( 'COVID_IMPACT_EXPIRATION', strtotime( 'June 30 2021' ) ); 46 40 47 // The test suite just needs the functions defined and doesn't want any headers or output 41 48 if ( defined( 'RUNNING_TESTS' ) && RUNNING_TESTS ) { … … 769 776 ); 770 777 771 /* 772 * Increase range during COVID-19 to mitigate event deserts. 773 * 774 * See https://make.wordpress.org/core/2020/04/02/showing-online-wordcamps-in-the-events-widget/#comment-38480 775 */ 776 if ( time() < strtotime( 'December 31 2020' ) ) { 778 if ( time() < COVID_IMPACT_EXPIRATION ) { 777 779 $event_distances['wordcamp'] = 600; 778 780 } … … 1353 1355 global $wpdb, $cache_group, $cache_life; 1354 1356 1355 // Re-evaluate pinning after July, per https://make.wordpress.org/core/2020/04/02/showing-online-wordcamps-in-the-events-widget/#comment-38480. 1356 if ( $current_time >= strtotime( 'December 31 2020' ) ) { 1357 if ( $current_time >= COVID_IMPACT_EXPIRATION ) { 1357 1358 return $events; 1358 1359 }
Note: See TracChangeset
for help on using the changeset viewer.