Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41935, comment 2


Ignore:
Timestamp:
09/21/2017 03:01:18 PM (8 years ago)
Author:
subrataemfluence
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41935, comment 2

    initial v1  
    22
    33Question is how two records with same ID can reside in database unless it is not the primary key. And are lat and lon being determined dynamically when the records are fetched? Only then they could be a little different (not always though). If that information was stored in database upfront, they cannot be different.
    4 
    5 Another thing I probably have discovered, not sure if this is an issue as well. When I login to my dashboard, I can see meetup announcements in Mumbai which is far away from my location (about 2000 Km), but when I run the endpoint in browser with my location (Kolkata, [https://api.wordpress.org/events/1.0/?location=kolkata]) no result is returned.
    6 
    7 If Kolkata (this is the timezone set in my application) does not return any result then why `$response = wp_remote_get( $api_url, $request_args );` is returning meetup events from Mumbai in dashboard but not when I run the endpoint separately in the browser? The only possibility could be if the code looks for country wide meetups if none found in supplied location. Even then when I run the endpoint, I would expect the same behavior.
    8 
    9 I am further inspecting the code and trying to figure this out.