--- a/wp/wp-includes/widgets/class-wp-widget-text.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/widgets/class-wp-widget-text.php Fri Sep 05 18:52:52 2025 +0200
@@ -334,9 +334,6 @@
$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
@@ -560,7 +557,7 @@
<div hidden class="wp-pointer paste-html-pointer wp-pointer-top">
<div class="wp-pointer-content">
<h3><?php _e( 'Did you just paste HTML?' ); ?></h3>
- <p><?php _e( 'Hey there, looks like you just pasted HTML into the “Visual” tab of the Text widget. You may want to paste your code into the “Text” tab instead. Alternately, try out the new “Custom HTML” widget!' ); ?></p>
+ <p><?php _e( 'Hey there, looks like you just pasted HTML into the “Visual” tab of the Text widget. You may want to paste your code into the “Code” tab instead. Alternately, try out the new “Custom HTML” widget!' ); ?></p>
<div class="wp-pointer-buttons">
<a class="close" href="#"><?php _e( 'Dismiss' ); ?></a>
</div>