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/src/wp-includes/default-filters.php

    r43812 r43930  
    118118    add_filter( $filter, 'balanceTags', 50 );
    119119}
    120 
    121 // Add proper rel values for links with target.
    122 foreach ( array(
    123     'title_save_pre',
    124     'content_save_pre',
    125     'excerpt_save_pre',
    126     'content_filtered_save_pre',
    127     'pre_comment_content',
    128     'pre_term_description',
    129     'pre_link_description',
    130     'pre_link_notes',
    131     'pre_user_description',
    132 ) as $filter ) {
    133     add_filter( $filter, 'wp_targeted_link_rel' );
    134 };
    135120
    136121// Format strings for display.
Note: See TracChangeset for help on using the changeset viewer.