Make WordPress Core


Ignore:
Timestamp:
06/30/2020 11:34:58 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Remove unnecessary i18n from _wp_update_comment_data_filter().

Follow-up to [48154], [48217].

See #39732.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php

    r48154 r48228  
    28152815
    28162816    /**
    2817      * Block comments from being updated by returning WP_Error
     2817     * Blocks comments from being updated by returning WP_Error.
    28182818     */
    28192819    public function _wp_update_comment_data_filter( $data, $comment, $commentarr ) {
    2820         return new WP_Error( 'comment_wrong', __( 'wp_update_comment_data filter fails for this comment.' ), array( 'status' => 500 ) );
     2820        return new WP_Error( 'comment_wrong', 'wp_update_comment_data filter fails for this comment.', array( 'status' => 500 ) );
    28212821    }
    28222822
Note: See TracChangeset for help on using the changeset viewer.