WordPress.org

Making WordPress.org

Changeset 5539


Ignore:
Timestamp:
06/05/2017 10:52:07 PM (4 years ago)
Author:
iandunn
Message:

Events: Remove unnecessary $location check

$location will never return true in this path, so there's no need to check it.

See #2823
Props dd32

File:
1 edited

Legend:

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

    r5538 r5539  
    574574            $guess = guess_location_from_country( $args['location_name'] );
    575575
    576             if ( ! $location && $guess ) {
     576            if ( $guess ) {
    577577                $location = array(
    578578                    'country'     => $guess['country_short'],
Note: See TracChangeset for help on using the changeset viewer.