Changeset 44714 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 01/29/2019 09:28:57 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r44580 r44714 2886 2886 add_filter( 'wp_save_post_revision_post_has_changed', array( $this, '_filter_revision_post_has_changed' ), 5, 3 ); 2887 2887 2888 // Update the changeset post. The publish_customize_changeset action will cause the settings in the changeset to be saved via WP_Customize_Setting::save(). 2888 /* 2889 * Update the changeset post. The publish_customize_changeset action 2890 * will cause the settings in the changeset to be saved via 2891 * WP_Customize_Setting::save(). 2892 */ 2893 2894 // Prevent content filters from corrupting JSON in post_content. 2889 2895 $has_kses = ( false !== has_filter( 'content_save_pre', 'wp_filter_post_kses' ) ); 2890 2896 if ( $has_kses ) { 2891 kses_remove_filters(); // Prevent KSES from corrupting JSON in post_content. 2897 kses_remove_filters(); 2898 } 2899 $has_targeted_link_rel_filters = ( false !== has_filter( 'content_save_pre', 'wp_targeted_link_rel' ) ); 2900 if ( $has_targeted_link_rel_filters ) { 2901 wp_remove_targeted_link_rel_filters(); 2892 2902 } 2893 2903 … … 2919 2929 } 2920 2930 } 2931 2932 // Restore removed content filters. 2921 2933 if ( $has_kses ) { 2922 2934 kses_init_filters(); 2923 2935 } 2936 if ( $has_targeted_link_rel_filters ) { 2937 wp_init_targeted_link_rel_filters(); 2938 } 2939 2924 2940 $this->_changeset_data = null; // Reset so WP_Customize_Manager::changeset_data() will re-populate with updated contents. 2925 2941
Note: See TracChangeset
for help on using the changeset viewer.