From acbbd28d0e0a6551b902a67875585a79886004cc Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 18 Jun 2018 16:09:55 +0000 Subject: [PATCH] Privacy: add `esc_html` to assertion in test_wp_comments_personal_data_exporter. Props mermel, 1naveengiri. Fixes #44113. git-svn-id: https://develop.svn.wordpress.org/trunk@43371 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/comment.php b/tests/phpunit/tests/comment.php index 7f63c62912..a1e3fb3cd4 100644 --- a/tests/phpunit/tests/comment.php +++ b/tests/phpunit/tests/comment.php @@ -1156,7 +1156,7 @@ class Tests_Comment extends WP_UnitTestCase { $this->assertSame( $expected['comment_agent'], $actual['data'][0]['data'][4]['value'] ); $this->assertSame( $expected['comment_date'], $actual['data'][0]['data'][5]['value'] ); $this->assertSame( $expected['comment_content'], $actual['data'][0]['data'][6]['value'] ); - $this->assertSame( get_comment_link( $comment_id ), strip_tags( $actual['data'][0]['data'][7]['value'] ) ); + $this->assertSame( esc_html( get_comment_link( $comment_id ) ), strip_tags( $actual['data'][0]['data'][7]['value'] ) ); } /**