Making WordPress.org

Changeset 5487


Ignore:
Timestamp:
05/11/2017 07:24:46 PM (9 years ago)
Author:
iandunn
Message:

Events: Remove unused variable

File:
1 edited

Legend:

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

    r5481 r5487  
    357357 *         See https://www.google.com/intl/en/ipv6/statistics.html#tab=ipv6-adoption for current stats.
    358358 *
     359 * @todo - Core sends anonymized IPs like `2a03:2880:2110:df07::`, so make sure those work when implementing IPv6
     360 *
    359361 * @param string $dotted_ip
    360362 *
     
    625627 *         http://www.techfounder.net/2009/02/02/selecting-closest-values-in-mysql/
    626628 *         There's only 140k rows in the table, though, so this is performant for now.
     629 *
     630 * NOTE: If this causes any performance issues, it's possible that it could be removed entirely. The Core client
     631 *       saves the location locally, so it could display that instead of using this. However, there were some
     632 *       edge cases early in development that caused us to add this. I don't remember what they were, though, and
     633 *       didn't properly document them in r5128. So, if we ever want to attempt removing this, we'll need to test
     634 *       for unintended side effects. The Core client would need to be updated to display the saved location, so
     635 *       removing this would probably require creating a new version of the endpoint, and leaving this version for
     636 *       older installs.
    627637 *
    628638 * @param float $latitude
     
    681691        );
    682692        $nearby_where = array();
    683         $nearby_vals = '';
     693
    684694        foreach ( $event_distances as $type => $distance ) {
    685695            if ( !empty( $args['type'] ) && $type != $args['type'] ) {
Note: See TracChangeset for help on using the changeset viewer.