mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-27 04:20:14 +00:00
General: Remove noreferrer from wp_targeted_link_rel() and other uses.
When `noopener noreferrer` was originally added in #37941 and related tickets, the `noreferrer` bit was specifically included due to Firefox not supporting `noopener` at the time. Since `noopener` has been supported by all major browsers for a while, it should now be safe to remove the `noreferrer` attribute from core. Props Mista-Flo, audrasjb, joostdevalk, jonoaldersonwp, peterwilsoncc, elgameel. Fixes #49558. git-svn-id: https://develop.svn.wordpress.org/trunk@49215 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -689,7 +689,7 @@ switch ( $action ) {
|
||||
$accessibility_text = sprintf( '<span class="screen-reader-text"> %s</span>', __( '(opens in a new tab)' ) );
|
||||
|
||||
printf(
|
||||
'<a href="%s" rel="noopener noreferrer" target="_blank">%s%s</a>',
|
||||
'<a href="%s" rel="noopener" target="_blank">%s%s</a>',
|
||||
esc_url( $admin_email_help_url ),
|
||||
__( 'Why is this important?' ),
|
||||
$accessibility_text
|
||||
@@ -1540,7 +1540,7 @@ switch ( $action ) {
|
||||
for ( i in links ) {
|
||||
if ( links[i].href ) {
|
||||
links[i].target = '_blank';
|
||||
links[i].rel = 'noreferrer noopener';
|
||||
links[i].rel = 'noopener';
|
||||
}
|
||||
}
|
||||
} catch( er ) {}
|
||||
|
||||
Reference in New Issue
Block a user