Make WordPress Core

Changeset 31528


Ignore:
Timestamp:
02/24/2015 03:23:09 AM (10 years ago)
Author:
dd32
Message:

Upgrades: Specifically pass the 'version' and 'locale' POST vars through the Core Update FTP credentials form.
This bug was introduced with [30384] / #30245.
Merges [31527] to the 4.1 branch.
Fixes #31378.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/src/wp-admin/update-core.php

    r31383 r31528  
    391391<?php
    392392
    393     if ( false === ( $credentials = request_filesystem_credentials( $url, '', false, ABSPATH, array(), $allow_relaxed_file_ownership ) ) ) {
     393    if ( false === ( $credentials = request_filesystem_credentials( $url, '', false, ABSPATH, array( 'version', 'locale' ), $allow_relaxed_file_ownership ) ) ) {
    394394        echo '</div>';
    395395        return;
     
    398398    if ( ! WP_Filesystem( $credentials, ABSPATH, $allow_relaxed_file_ownership ) ) {
    399399        // Failed to connect, Error and request again
    400         request_filesystem_credentials( $url, '', true, ABSPATH, array(), $allow_relaxed_file_ownership );
     400        request_filesystem_credentials( $url, '', true, ABSPATH, array( 'version', 'locale' ), $allow_relaxed_file_ownership );
    401401        echo '</div>';
    402402        return;
Note: See TracChangeset for help on using the changeset viewer.