Making WordPress.org

Changeset 9769


Ignore:
Timestamp:
04/23/2020 03:15:20 AM (6 years ago)
Author:
dd32
Message:

API: Events: Avoid unset indicy and unset variable php notices.

File:
1 edited

Legend:

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

    r9756 r9769  
    480480 */
    481481function get_location( $args = array() ) {
    482         $throttle_geonames = $throttle_ip2location = false;
     482        $throttle_geonames = $throttle_ip2location = $location = false;
    483483
    484484        // For a country request, no lat/long are returned.
     
    12941294                        '%s%s%s',
    12951295                        $parsed_url['host'],
    1296                         $parsed_url['path'],
    1297                         $parsed_url['query']
     1296                        $parsed_url['path'] ?? '',
     1297                        $parsed_url['query'] ?? ''
    12981298                );
    12991299                $normalized_url = str_replace( '/', '', $normalized_url );
Note: See TracChangeset for help on using the changeset viewer.