Make WordPress Core


Ignore:
Timestamp:
01/29/2019 09:28:57 PM (6 years ago)
Author:
peterwilsoncc
Message:

Customize: Remove wp_targeted_link_rel pre-save filter from change-sets.

The pre-save filters added to links in [43732] could invalidate JSON data when saving Customizer change-sets.

This removes the filters when saving and publishing change-sets.

Props peterwilsoncc, nikeo for testing.
See #45292.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r44157 r44714  
    129129
    130130// Add proper rel values for links with target.
    131 foreach ( array(
    132     'title_save_pre',
    133     'content_save_pre',
    134     'excerpt_save_pre',
    135     'content_filtered_save_pre',
    136     'pre_comment_content',
    137     'pre_term_description',
    138     'pre_link_description',
    139     'pre_link_notes',
    140     'pre_user_description',
    141 ) as $filter ) {
    142     add_filter( $filter, 'wp_targeted_link_rel' );
    143 };
     131add_action( 'init', 'wp_init_targeted_link_rel_filters' );
    144132
    145133// Format strings for display.
Note: See TracChangeset for help on using the changeset viewer.