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-posts-controller.php

    r43908 r43930  
    29842984                    ),
    29852985                    'content' => array(
    2986                         'raw'      => '<a href="#" target="_blank" rel="noopener noreferrer">link</a>',
    2987                         'rendered' => '<p><a href="#" target="_blank" rel="noopener noreferrer">link</a></p>',
     2986                        'raw'      => '<a href="#" target="_blank">link</a>',
     2987                        'rendered' => '<p><a href="#" target="_blank">link</a></p>',
    29882988                    ),
    29892989                    'excerpt' => array(
    2990                         'raw'      => '<a href="#" target="_blank" rel="noopener noreferrer">link</a>',
    2991                         'rendered' => '<p><a href="#" target="_blank" rel="noopener noreferrer">link</a></p>',
     2990                        'raw'      => '<a href="#" target="_blank">link</a>',
     2991                        'rendered' => '<p><a href="#" target="_blank">link</a></p>',
    29922992                    ),
    29932993                )
Note: See TracChangeset for help on using the changeset viewer.