diff --git a/src/wp-includes/widgets/class-wp-widget-media-image.php b/src/wp-includes/widgets/class-wp-widget-media-image.php
index 8a95135..3e8adc2 100644
a
|
b
|
class WP_Widget_Media_Image extends WP_Widget_Media { |
257 | 257 | $link .= sprintf( ' rel="%s"', esc_attr( $instance['link_rel'] ) ); |
258 | 258 | } |
259 | 259 | if ( ! empty( $instance['link_target_blank'] ) ) { |
| 260 | if ( empty( $instance['link_rel'] ) ) { |
| 261 | $link .= ' rel="noopener"'; |
| 262 | } |
260 | 263 | $link .= ' target="_blank"'; |
261 | 264 | } |
262 | 265 | $link .= '>'; |