From 6642a1d2283055ba494fb87083c74c40a746d6b9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 12 Mar 2015 13:08:40 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/ajax-actions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index 430ae97ac9..7353861d67 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -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 ); }