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

Props audrasjb, welcher, afercia.
Fixes #43280.


Built from https://develop.svn.wordpress.org/trunk@45144


git-svn-id: http://core.svn.wordpress.org/trunk@44953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2019-04-08 23:23:51 +00:00
parent 822e8b1a95
commit 8c8c1f8984
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.2-beta1-45143';
$wp_version = '5.2-beta1-45144';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -266,7 +266,7 @@ class WP_Widget_Media_Image extends WP_Widget_Media {
$link .= '>';
$link .= $image;
$link .= '</a>';
$image = $link;
$image = wp_targeted_link_rel( $link );
}
if ( $caption ) {