WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/30/2020 11:34:58 AM (15 months 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/comment.php

    r48154 r48228  
    162162
    163163    /**
    164      * Block comments from being updated by returning WP_Error
     164     * Blocks comments from being updated by returning WP_Error.
    165165     */
    166166    public function _wp_update_comment_data_filter( $data, $comment, $commentarr ) {
    167         return new WP_Error( 'comment_wrong', __( 'wp_update_comment_data filter fails for this comment.' ), 500 );
     167        return new WP_Error( 'comment_wrong', 'wp_update_comment_data filter fails for this comment.', 500 );
    168168    }
    169169
Note: See TracChangeset for help on using the changeset viewer.