diff --git src/wp-admin/includes/class-wp-community-events.php src/wp-admin/includes/class-wp-community-events.php
index d3c6f08699..3fbc733f41 100644
|
|
class WP_Community_Events { |
67 | 67 | * data. The API will send back a recognized location based on the data, along |
68 | 68 | * with nearby events. |
69 | 69 | * |
| 70 | * The reason that the browser's request for events is proxied through this |
| 71 | * method, instead of having the browser make it directly to api.wordpress.org, |
| 72 | * is so that the results can be cached server-side, and shared with other |
| 73 | * users and sites in the network. Increasing the number of visits that get |
| 74 | * cached data means users have to wait less often. If the user's browser |
| 75 | * made the request directly, then it would also need to make a subsequent |
| 76 | * request to WP in order to pass the data for caching. Having WP make the |
| 77 | * request also introduces the opportunity to anonymize the IP before sending |
| 78 | * it to w.org, which mitigates privacy concerns that some users have. |
| 79 | * |
70 | 80 | * @since 4.8.0 |
71 | 81 | * |
72 | 82 | * @param string $location_search Optional city name to help determine the location. |
diff --git src/wp-admin/includes/upgrade.php src/wp-admin/includes/upgrade.php
index d4be87dfaa..23a5eee4d7 100644
|
|
function upgrade_all() { |
565 | 565 | if ( $wp_current_db_version < 37965 ) |
566 | 566 | upgrade_460(); |
567 | 567 | |
568 | | if ( $wp_current_db_version < 40500 ) { //todo update to commit for #40702 |
| 568 | if ( $wp_current_db_version < 40607 ) { |
569 | 569 | upgrade_480(); |
570 | 570 | } |
571 | 571 | |
… |
… |
function upgrade_460() { |
1747 | 1747 | function upgrade_480() { |
1748 | 1748 | global $wp_current_db_version; |
1749 | 1749 | |
1750 | | if ( $wp_current_db_version < 40500 ) { // todo update to commit for #40702 |
| 1750 | if ( $wp_current_db_version < 40607 ) { |
1751 | 1751 | // This feature plugin was merged for #40702, so the plugin itself is no longer needed |
1752 | 1752 | deactivate_plugins( array( 'nearby-wp-events/nearby-wordpress-events.php' ), true ); |
1753 | 1753 | |