WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/22/2018 12:24:01 AM (11 months ago)
Author:
peterwilsoncc
Message:

Formatting: Revert pre-save filter adding rel="noopener".

Removes filters adding rel="noopener" to links targeting _blank.

Previous implementation could introduce blank rel attributes and could corrupt JSON data when saving via the customizer.

See #43187.
Reverts [43732] and [43733] from the 5.0 branch.

File:
1 edited

Legend:

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

    r43862 r43930  
    942942                    ),
    943943                    'description' => array(
    944                         'raw'      => '<a href="#" target="_blank" rel="noopener noreferrer">link</a>',
    945                         'rendered' => '<p><a href="#" target="_blank" rel="noopener noreferrer">link</a></p>',
     944                        'raw'      => '<a href="#" target="_blank">link</a>',
     945                        'rendered' => '<p><a href="#" target="_blank">link</a></p>',
    946946                    ),
    947947                    'caption' => array(
    948                         'raw'      => '<a href="#" target="_blank" rel="noopener noreferrer">link</a>',
    949                         'rendered' => '<p><a href="#" target="_blank" rel="noopener noreferrer">link</a></p>',
     948                        'raw'      => '<a href="#" target="_blank">link</a>',
     949                        'rendered' => '<p><a href="#" target="_blank">link</a></p>',
    950950                    ),
    951951                )
Note: See TracChangeset for help on using the changeset viewer.