mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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:
parent
822e8b1a95
commit
8c8c1f8984
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
@ -266,7 +266,7 @@ class WP_Widget_Media_Image extends WP_Widget_Media {
|
|||||||
$link .= '>';
|
$link .= '>';
|
||||||
$link .= $image;
|
$link .= $image;
|
||||||
$link .= '</a>';
|
$link .= '</a>';
|
||||||
$image = $link;
|
$image = wp_targeted_link_rel( $link );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $caption ) {
|
if ( $caption ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user