WordPress.org

Make WordPress Core

Changeset 43372


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

Privacy: add esc_html to assertion in test_wp_comments_personal_data_exporter.

Props mermel, 1naveengiri.
Merges [43371] to the 4.9 branch.
Fixes #44113.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/tests/phpunit/tests/comment.php

    r43110 r43372  
    10431043        $this->assertSame( $expected['comment_date'], $actual['data'][0]['data'][5]['value'] );
    10441044        $this->assertSame( $expected['comment_content'], $actual['data'][0]['data'][6]['value'] );
    1045         $this->assertSame( get_comment_link( $comment_id ), strip_tags( $actual['data'][0]['data'][7]['value'] ) );
     1045        $this->assertSame( esc_html( get_comment_link( $comment_id ) ), strip_tags( $actual['data'][0]['data'][7]['value'] ) );
    10461046    }
    10471047
Note: See TracChangeset for help on using the changeset viewer.