WordPress.org

Make WordPress Core

Changeset 43371


Ignore:
Timestamp:
06/18/2018 04:09:55 PM (17 months ago)
Author:
azaozz
Message:

Privacy: add esc_html to assertion in test_wp_comments_personal_data_exporter.

Props mermel, 1naveengiri.
Fixes #44113.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment.php

    r43061 r43371  
    11571157        $this->assertSame( $expected['comment_date'], $actual['data'][0]['data'][5]['value'] );
    11581158        $this->assertSame( $expected['comment_content'], $actual['data'][0]['data'][6]['value'] );
    1159         $this->assertSame( get_comment_link( $comment_id ), strip_tags( $actual['data'][0]['data'][7]['value'] ) );
     1159        $this->assertSame( esc_html( get_comment_link( $comment_id ) ), strip_tags( $actual['data'][0]['data'][7]['value'] ) );
    11601160    }
    11611161
Note: See TracChangeset for help on using the changeset viewer.