Make WordPress Core


Ignore:
Timestamp:
05/31/2009 09:08:03 PM (16 years ago)
Author:
azaozz
Message:

Test writability of ABSPATH when upgrading core or WP_PLUGIN_DIR when installing/updating themes and plugins, fixes #9936

File:
1 edited

Legend:

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

    r11450 r11499  
    721721    }
    722722    function __construct($args = array()) {
    723         $defaults = array( 'url' => '', 'nonce' => '', 'title' => '' );
     723        $defaults = array( 'url' => '', 'nonce' => '', 'title' => '', 'context' => false );
    724724        $this->options = wp_parse_args($args, $defaults);
    725725    }
     
    735735    function request_filesystem_credentials($error = false) {
    736736        $url = $this->options['url'];
     737        $context = $this->options['context'];
    737738        if ( !empty($this->options['nonce']) )
    738739            $url = wp_nonce_url($url, $this->options['nonce']);
    739         return request_filesystem_credentials($url, '', $error); //Possible to bring inline, Leaving as0is for now.
     740        return request_filesystem_credentials($url, '', $error, $context); //Possible to bring inline, Leaving as is for now.
    740741    }
    741742
Note: See TracChangeset for help on using the changeset viewer.