Make WordPress Core

Ticket #40702: 40702-upgrade.diff

File 40702-upgrade.diff, 2.0 KB (added by iandunn, 7 years ago)

Updates revisions numbers, documents reason for proxying request

  • src/wp-admin/includes/class-wp-community-events.php

    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 { 
    6767         * data. The API will send back a recognized location based on the data, along
    6868         * with nearby events.
    6969         *
     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         *
    7080         * @since 4.8.0
    7181         *
    7282         * @param string $location_search Optional city name to help determine the location.
  • src/wp-admin/includes/upgrade.php

    diff --git src/wp-admin/includes/upgrade.php src/wp-admin/includes/upgrade.php
    index d4be87dfaa..23a5eee4d7 100644
    function upgrade_all() { 
    565565        if ( $wp_current_db_version < 37965 )
    566566                upgrade_460();
    567567
    568         if ( $wp_current_db_version < 40500 ) { //todo update to commit for #40702
     568        if ( $wp_current_db_version < 40607 ) {
    569569                upgrade_480();
    570570        }
    571571
    function upgrade_460() { 
    17471747function upgrade_480() {
    17481748        global $wp_current_db_version;
    17491749
    1750         if ( $wp_current_db_version < 40500 ) { // todo update to commit for #40702
     1750        if ( $wp_current_db_version < 40607 ) {
    17511751                // This feature plugin was merged for #40702, so the plugin itself is no longer needed
    17521752                deactivate_plugins( array( 'nearby-wp-events/nearby-wordpress-events.php' ), true );
    17531753