WordPress.org

Make WordPress Core

Changeset 25422


Ignore:
Timestamp:
09/13/13 06:52:11 (4 years ago)
Author:
dd32
Message:

WordPress Core Automatic Updates: Pass the Filesystem path as $context to request_filesystem_credentials(). See #22704

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader-skins.php

    r25421 r25422  
    542542    var $messages = array(); 
    543543 
    544     function request_filesystem_credentials( $error = false ) { 
     544    function request_filesystem_credentials( $error = false, $context = '' ) { 
     545        if ( $context ) 
     546            $this->options['context'] = $context; 
    545547        // TODO: fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version 
    546548        // This will output a credentials form in event of failure, We don't want that, so just hide with a buffer 
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r25421 r25422  
    13531353        if ( ! self::$skin ) 
    13541354            self::$skin = new Automatic_Upgrader_Skin(); 
    1355         return (bool) self::$skin->request_filesystem_credentials(); 
     1355        return (bool) self::$skin->request_filesystem_credentials( false, $context ); 
    13561356    } 
    13571357 
Note: See TracChangeset for help on using the changeset viewer.