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 ); }