mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-12 15:48:34 +02:00
Updates: When a connection failure occurs, and no credential form is present client side, allow it to fall through to the normal failure handlers.
Merges [32776] to the 4.2 branch See #32435 Built from https://develop.svn.wordpress.org/branches/4.2@33303 git-svn-id: http://core.svn.wordpress.org/branches/4.2@33275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b6058e2231
commit
3f40fe30a8
@ -250,7 +250,7 @@ window.wp = window.wp || {};
|
|||||||
wp.updates.updateError = function( response ) {
|
wp.updates.updateError = function( response ) {
|
||||||
var $message, name;
|
var $message, name;
|
||||||
wp.updates.updateDoneSuccessfully = false;
|
wp.updates.updateDoneSuccessfully = false;
|
||||||
if ( response.errorCode && response.errorCode == 'unable_to_connect_to_filesystem' ) {
|
if ( response.errorCode && response.errorCode == 'unable_to_connect_to_filesystem' && wp.updates.shouldRequestFilesystemCredentials ) {
|
||||||
wp.updates.credentialError( response, 'update-plugin' );
|
wp.updates.credentialError( response, 'update-plugin' );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
2
wp-admin/js/updates.min.js
vendored
2
wp-admin/js/updates.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user