Make WordPress Core


Ignore:
Timestamp:
03/12/2015 01:08:40 PM (12 years ago)
Author:
SergeyBiryukov
Message:

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

props ericlewis.
fixes #31606.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r31749 r31751  
    29152915                wp_send_json_error( $status );
    29162916        } else if ( is_null( $result ) ) {
    2917                 $status['errorCode'] = __( 'unable_to_connect_to_filesystem' );
     2917                $status['errorCode'] = 'unable_to_connect_to_filesystem';
    29182918                $status['error'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );
    29192919                wp_send_json_error( $status );
     
    29652965                wp_send_json_error( $status );
    29662966        } else if ( is_bool( $result ) && ! $result ) {
    2967                 $status['errorCode'] = __( 'unable_to_connect_to_filesystem' );
     2967                $status['errorCode'] = 'unable_to_connect_to_filesystem';
    29682968                $status['error'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' );
    29692969                wp_send_json_error( $status );
Note: See TracChangeset for help on using the changeset viewer.