Make WordPress Core


Ignore:
Timestamp:
05/12/2017 03:52:09 PM (9 years ago)
Author:
obenland
Message:

Dashboard: Persist location for community events

Fixes a bug where cached events & location data was not accessible because the
cache key could not be regenerated without latitude and longitude information.

Discovered and fixed during #wcber contributor day.

Props soean, kubik-rubik, obenland.
See #40702.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r40607 r40651  
    320320    } else {
    321321        if ( isset( $events['location'] ) ) {
    322             // Send only the data that the client will use.
    323             $events['location'] = $events['location']['description'];
    324 
    325322            // Store the location network-wide, so the user doesn't have to set it on each site.
    326323            update_user_option( $user_id, 'community-events-location', $events['location'], true );
Note: See TracChangeset for help on using the changeset viewer.