WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/19/2020 11:37:53 PM (12 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php

    r49047 r49215  
    11631163                    ),
    11641164                    'description' => array(
    1165                         'raw'      => '<a href="#" target="_blank" rel="noopener noreferrer">link</a>',
    1166                         'rendered' => '<p><a href="#" target="_blank" rel="noopener noreferrer">link</a></p>',
     1165                        'raw'      => '<a href="#" target="_blank" rel="noopener">link</a>',
     1166                        'rendered' => '<p><a href="#" target="_blank" rel="noopener">link</a></p>',
    11671167                    ),
    11681168                    'caption'     => array(
    1169                         'raw'      => '<a href="#" target="_blank" rel="noopener noreferrer">link</a>',
    1170                         'rendered' => '<p><a href="#" target="_blank" rel="noopener noreferrer">link</a></p>',
     1169                        'raw'      => '<a href="#" target="_blank" rel="noopener">link</a>',
     1170                        'rendered' => '<p><a href="#" target="_blank" rel="noopener">link</a></p>',
    11711171                    ),
    11721172                ),
Note: See TracChangeset for help on using the changeset viewer.