Shiny Updates: Don't translate an error code string.

props ericlewis.
fixes #31606.

git-svn-id: https://develop.svn.wordpress.org/trunk@31751 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-03-12 13:08:40 +00:00
parent 37bee1ed3a
commit 6642a1d228

View File

@ -2914,7 +2914,7 @@ function wp_ajax_install_plugin() {
$status['error'] = $result->get_error_message();
wp_send_json_error( $status );
} else if ( is_null( $result ) ) {
$status['errorCode'] = __( 'unable_to_connect_to_filesystem' );
$status['errorCode'] = 'unable_to_connect_to_filesystem';
$status['error'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );
wp_send_json_error( $status );
}
@ -2964,7 +2964,7 @@ function wp_ajax_update_plugin() {
$status['error'] = $result->get_error_message();
wp_send_json_error( $status );
} else if ( is_bool( $result ) && ! $result ) {
$status['errorCode'] = __( 'unable_to_connect_to_filesystem' );
$status['errorCode'] = 'unable_to_connect_to_filesystem';
$status['error'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );
wp_send_json_error( $status );
}