WordPress Core Automatic Updates: Pass the Filesystem path as $context to request_filesystem_credentials(). See #22704
Built from https://develop.svn.wordpress.org/trunk@25422 git-svn-id: http://core.svn.wordpress.org/trunk@25347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1352,7 +1352,7 @@ class WP_Automatic_Upgrader {
|
||||
static function can_auto_update( $context ) {
|
||||
if ( ! self::$skin )
|
||||
self::$skin = new Automatic_Upgrader_Skin();
|
||||
return (bool) self::$skin->request_filesystem_credentials();
|
||||
return (bool) self::$skin->request_filesystem_credentials( false, $context );
|
||||
}
|
||||
|
||||
static function upgrade( $type, $item ) {
|
||||
|
||||
Reference in New Issue
Block a user