From 7653810aa2eb54a01a79577e3355d385380fe641 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 30 Jun 2020 11:34:58 +0000 Subject: [PATCH] Tests: Remove unnecessary i18n from `_wp_update_comment_data_filter()`. Follow-up to [48154], [48217]. See #39732. git-svn-id: https://develop.svn.wordpress.org/trunk@48228 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment.php | 4 ++-- tests/phpunit/tests/rest-api/rest-comments-controller.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/tests/comment.php b/tests/phpunit/tests/comment.php index a5bd0a995d..109cdb46d0 100644 --- a/tests/phpunit/tests/comment.php +++ b/tests/phpunit/tests/comment.php @@ -161,10 +161,10 @@ class Tests_Comment extends WP_UnitTestCase { } /** - * Block comments from being updated by returning WP_Error + * Blocks comments from being updated by returning WP_Error. */ public function _wp_update_comment_data_filter( $data, $comment, $commentarr ) { - return new WP_Error( 'comment_wrong', __( 'wp_update_comment_data filter fails for this comment.' ), 500 ); + return new WP_Error( 'comment_wrong', 'wp_update_comment_data filter fails for this comment.', 500 ); } public function test_get_approved_comments() { diff --git a/tests/phpunit/tests/rest-api/rest-comments-controller.php b/tests/phpunit/tests/rest-api/rest-comments-controller.php index 7dd552d3d3..5bf7cd10dc 100644 --- a/tests/phpunit/tests/rest-api/rest-comments-controller.php +++ b/tests/phpunit/tests/rest-api/rest-comments-controller.php @@ -2814,10 +2814,10 @@ class WP_Test_REST_Comments_Controller extends WP_Test_REST_Controller_Testcase } /** - * Block comments from being updated by returning WP_Error + * Blocks comments from being updated by returning WP_Error. */ public function _wp_update_comment_data_filter( $data, $comment, $commentarr ) { - return new WP_Error( 'comment_wrong', __( 'wp_update_comment_data filter fails for this comment.' ), array( 'status' => 500 ) ); + return new WP_Error( 'comment_wrong', 'wp_update_comment_data filter fails for this comment.', array( 'status' => 500 ) ); } public function verify_comment_roundtrip( $input = array(), $expected_output = array() ) {