WP_Community_Events::coordinates_match() – Test if two pairs of latitude/longitude coordinates match each other.

You appear to be a bot. Output may be restricted

Description

Test if two pairs of latitude/longitude coordinates match each other.

Usage

$bool = WP_Community_Events::coordinates_match( $a, $b );

Parameters

$a
( array ) required – The first pair, with indexes 'latitude' and 'longitude'.
$b
( array ) required – The second pair, with indexes 'latitude' and 'longitude'.

Returns

bool True if they match, false if they don't.

Source

File name: wordpress/wp-admin/includes/class-wp-community-events.php
Lines:

1 to 7 of 7
  protected function coordinates_match( $a, $b ) {
    if ( ! isset( $a['latitude'], $a['longitude'], $b['latitude'], $b['longitude'] ) ) {
      return false;
    }

    return $a['latitude'] === $b['latitude'] && $a['longitude'] === $b['longitude'];
  }
 

 View on GitHub View on Trac