WordPress/wp-includes/widgets
Peter Wilson 8c3dd2eb88 General: Remove `noopener` from links opening in a new tab.
Removes the automatic addition of `rel="noopener noreferrer"` from links targeting a new tab or window, `target='_blank'`. Since this was introduced, supported browsers have changed their security policies and no longer allow the opened link to have JavaScript access to the previous tab.

Deprecates:

* `wp_targeted_link_rel()`
* `wp_targeted_link_rel_callback()`
* `wp_init_targeted_link_rel_filters()`: converted to a noop function
* `wp_remove_targeted_link_rel_filters()`: converted to a noop function

The deprecated functions are retained in `formatting.php` as in `SHORTINIT` mode the file is included while `deprecated.php` is not.

This also removes the `noopener` from links hard coded within the WordPress dashboard linking to documentation and other resources.

Props audrasjb, azaozz, dhruval04, dorzki, neo2k23, presskopp, sabernhardt, swissspidy, tobiasbg.
Fixes #53843.

Built from https://develop.svn.wordpress.org/trunk@59120


git-svn-id: http://core.svn.wordpress.org/trunk@58516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-09-30 05:19:16 +00:00
..
class-wp-nav-menu-widget.php Docs: Correct the placement of `@global` tags in various files. 2024-05-26 20:51:13 +00:00
class-wp-widget-archives.php Script Loader: Harden removal of script tag wrappers. 2023-09-29 19:47:21 +00:00
class-wp-widget-block.php Code Modernization: Replace usage of `strpos()` with `str_starts_with()`. 2023-05-02 15:45:22 +00:00
class-wp-widget-calendar.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
class-wp-widget-categories.php Script Loader: Harden removal of script tag wrappers. 2023-09-29 19:47:21 +00:00
class-wp-widget-custom-html.php General: Remove `noopener` from links opening in a new tab. 2024-09-30 05:19:16 +00:00
class-wp-widget-links.php
class-wp-widget-media-audio.php Administration: Increase `wp_admin_notice()` usage in `/wp-includes/`. 2023-09-16 21:49:27 +00:00
class-wp-widget-media-gallery.php Widgets: Improve performance of has_content method in WP_Widget_Media_Gallery class. 2023-09-04 16:33:17 +00:00
class-wp-widget-media-image.php General: Remove `noopener` from links opening in a new tab. 2024-09-30 05:19:16 +00:00
class-wp-widget-media-video.php Administration: Increase `wp_admin_notice()` usage in `/wp-includes/`. 2023-09-16 21:49:27 +00:00
class-wp-widget-media.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
class-wp-widget-meta.php
class-wp-widget-pages.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:32:23 +00:00
class-wp-widget-recent-comments.php
class-wp-widget-recent-posts.php
class-wp-widget-rss.php
class-wp-widget-search.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:32:23 +00:00
class-wp-widget-tag-cloud.php
class-wp-widget-text.php General: Remove `noopener` from links opening in a new tab. 2024-09-30 05:19:16 +00:00