Make WordPress Core

Ticket #31606: 31606.diff

File 31606.diff, 1.0 KB (added by ericlewis, 12 years ago)
  • src/wp-admin/includes/ajax-actions.php

     
    29142914                $status['error'] = $result->get_error_message();
    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 );
    29202920        }
     
    29642964                $status['error'] = $result->get_error_message();
    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 );
    29702970        }