Make WordPress Core


Ignore:
Timestamp:
04/08/2019 11:22:14 PM (5 years ago)
Author:
pento
Message:

Widgets: Add rel="noopener noreferrer" to links with target="_blank" in the Image widget.

Props audrasjb, welcher, afercia.
Fixes #43280.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/widgets/media-image-widget.php

    r45103 r45144  
    542542        $this->assertContains( '<a href="https://example.org"', $output );
    543543        $this->assertContains( 'target="_blank"', $output );
     544        $this->assertContains( 'rel="noopener noreferrer"', $output );
    544545
    545546        // Populate caption in attachment.
Note: See TracChangeset for help on using the changeset viewer.