WordPress.org

Make WordPress Core

Changeset 27883


Ignore:
Timestamp:
04/01/2014 03:28:09 AM (6 years ago)
Author:
nacin
Message:

Core Upgrader success statistics: Pass the version of WordPress we're upgrading from, as well as the version being upgraded to.

Merges [26016] and [26017] from 3.8 to the 3.7 branch.

fixes #25772.

Location:
branches/3.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src/wp-admin/includes/class-wp-upgrader.php

    r27881 r27883  
    13151315
    13161316    function upgrade( $current, $args = array() ) {
    1317         global $wp_filesystem, $wp_version;
     1317        global $wp_filesystem;
     1318
     1319        include ABSPATH . WPINC . '/version.php'; // $wp_version;
    13181320
    13191321        $start_time = time();
     
    14231425                'fs_method_forced' => defined( 'FS_METHOD' ) || has_filter( 'filesystem_method' ),
    14241426                'time_taken'       => time() - $start_time,
     1427                'reported'         => $wp_version,
    14251428                'attempted'        => $current->version,
    14261429            );
     
    19011904        // if the filesystem is unavailable, false is returned.
    19021905        if ( false === $upgrade_result ) {
    1903             $upgrade_result = new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) );           
     1906            $upgrade_result = new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) );
    19041907        }
    19051908
Note: See TracChangeset for help on using the changeset viewer.