mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Test writability of ABSPATH when upgrading core or WP_PLUGIN_DIR when installing/updating themes and plugins, fixes #9936
git-svn-id: https://develop.svn.wordpress.org/trunk@11499 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -720,7 +720,7 @@ class WP_Upgrader_Skin {
|
||||
return $this->__construct($args);
|
||||
}
|
||||
function __construct($args = array()) {
|
||||
$defaults = array( 'url' => '', 'nonce' => '', 'title' => '' );
|
||||
$defaults = array( 'url' => '', 'nonce' => '', 'title' => '', 'context' => false );
|
||||
$this->options = wp_parse_args($args, $defaults);
|
||||
}
|
||||
|
||||
@@ -734,9 +734,10 @@ class WP_Upgrader_Skin {
|
||||
|
||||
function request_filesystem_credentials($error = false) {
|
||||
$url = $this->options['url'];
|
||||
$context = $this->options['context'];
|
||||
if ( !empty($this->options['nonce']) )
|
||||
$url = wp_nonce_url($url, $this->options['nonce']);
|
||||
return request_filesystem_credentials($url, '', $error); //Possible to bring inline, Leaving as0is for now.
|
||||
return request_filesystem_credentials($url, '', $error, $context); //Possible to bring inline, Leaving as is for now.
|
||||
}
|
||||
|
||||
function header() {
|
||||
|
||||
Reference in New Issue
Block a user