wp/wp-includes/widgets/class-wp-widget-text.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
--- 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 &#8220;Visual&#8221; tab of the Text widget. You may want to paste your code into the &#8220;Text&#8221; tab instead. Alternately, try out the new &#8220;Custom HTML&#8221; widget!' ); ?></p>
+						<p><?php _e( 'Hey there, looks like you just pasted HTML into the &#8220;Visual&#8221; tab of the Text widget. You may want to paste your code into the &#8220;Code&#8221; tab instead. Alternately, try out the new &#8220;Custom HTML&#8221; widget!' ); ?></p>
 						<div class="wp-pointer-buttons">
 							<a class="close" href="#"><?php _e( 'Dismiss' ); ?></a>
 						</div>