Making WordPress.org

Changeset 9743


Ignore:
Timestamp:
04/17/2020 04:57:50 PM (6 years ago)
Author:
iandunn
Message:

Events: Increase range during COVID-19 to mitigate event deserts.

See ​https://make.wordpress.org/core/2020/04/02/showing-online-wordcamps-in-the-events-widget/#comment-38480.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/index.php

    r9742 r9743  
    192192        }
    193193
     194        // Help devs know if the response they're testing is coming from their sandbox or not.
    194195        $sandboxed = ( defined( 'WPORG_SANDBOXED' ) ) ? WPORG_SANDBOXED : null;
    195196
    … …  
    710711                'wordcamp' => 400,
    711712        );
     713
     714        /*
     715         * Increase range during COVID-19 to mitigate event deserts.
     716         *
     717         * See https://make.wordpress.org/core/2020/04/02/showing-online-wordcamps-in-the-events-widget/#comment-38480
     718         */
     719        if ( time() < strtotime( 'August 1 2020' ) ) {
     720                $event_distances['wordcamp'] = 600;
     721        }
    712722
    713723        $cache_key = 'events:' . md5( serialize( $args ) );
Note: See TracChangeset for help on using the changeset viewer.