From 8b3148491905ee87cca2349fd6b4a8d8f5ea28e2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 29 Jun 2020 23:07:09 +0000 Subject: [PATCH] Tests: Remove unnecessary i18n from `_wp_update_comment_data_filter()`. Follow-up to [48154]. See #39732. git-svn-id: https://develop.svn.wordpress.org/trunk@48217 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/ajax/EditComment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/ajax/EditComment.php b/tests/phpunit/tests/ajax/EditComment.php index 1024e10c5f..485e44480f 100644 --- a/tests/phpunit/tests/ajax/EditComment.php +++ b/tests/phpunit/tests/ajax/EditComment.php @@ -163,7 +163,7 @@ class Tests_Ajax_EditComment extends WP_Ajax_UnitTestCase { * Block 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 ); } /**