plugin updates
This commit is contained in:
@@ -149,9 +149,6 @@ class WP_Widget_Custom_HTML extends WP_Widget {
|
||||
/** This filter is documented in wp-includes/widgets/class-wp-widget-text.php */
|
||||
$content = apply_filters( 'widget_text', $instance['content'], $simulated_text_widget_instance, $this );
|
||||
|
||||
// Adds 'noopener' relationship, without duplicating values, to all HTML A elements that have a target.
|
||||
$content = wp_targeted_link_rel( $content );
|
||||
|
||||
/**
|
||||
* Filters the content of the Custom HTML widget.
|
||||
*
|
||||
|
||||
@@ -288,7 +288,7 @@ class WP_Widget_Media_Image extends WP_Widget_Media {
|
||||
$link .= '>';
|
||||
$link .= $image;
|
||||
$link .= '</a>';
|
||||
$image = wp_targeted_link_rel( $link );
|
||||
$image = $link;
|
||||
}
|
||||
|
||||
if ( $caption ) {
|
||||
|
||||
@@ -334,9 +334,6 @@ class WP_Widget_Text extends WP_Widget {
|
||||
|
||||
$text = preg_replace_callback( '#<(video|iframe|object|embed)\s[^>]*>#i', array( $this, 'inject_video_max_width_style' ), $text );
|
||||
|
||||
// Adds 'noopener' relationship, without duplicating values, to all HTML A elements that have a target.
|
||||
$text = wp_targeted_link_rel( $text );
|
||||
|
||||
?>
|
||||
<div class="textwidget"><?php echo $text; ?></div>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user