WordPress.org

Make WordPress Core

Changeset 25797


Ignore:
Timestamp:
10/15/13 20:00:01 (3 years ago)
Author:
nacin
Message:

Only add error data to the files_not_writable WP_Error if the install already has [25775] and [25796] applied.

see #22704.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update-core.php

    r25794 r25797  
    723723 
    724724            // Store package-relative paths (the key) of non-writable files in the WP_Error object. 
     725            $error_data = version_compare( $old_wp_version, '3.7-beta2', '>' ) ? array_keys( $files_not_writable ) : ''; 
     726 
    725727            if ( $files_not_writable ) 
    726                 return new WP_Error( 'files_not_writable', __( 'Could not copy file.' ), array_keys( $files_not_writable ) ); 
     728                return new WP_Error( 'files_not_writable', __( 'Could not copy file.' ), $data ); 
    727729        } 
    728730    } 
Note: See TracChangeset for help on using the changeset viewer.