WordPress.org

Make WordPress Core

Changeset 15600


Ignore:
Timestamp:
09/09/2010 02:43:18 AM (8 years ago)
Author:
nacin
Message:

Add force_filtered_html_on_import filter. fixes #14818.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r15558 r15600  
    195195    define('WP_IMPORTING', true);
    196196
    197     if ( is_multisite() )
    198         kses_init_filters();  // Always filter imported data with kses.
     197    if ( apply_filters( 'force_filtered_html_on_import', false ) )
     198        kses_init_filters();  // Always filter imported data with kses on multisite.
    199199
    200200    call_user_func($wp_importers[$importer][2]);
  • trunk/wp-includes/ms-default-filters.php

    r14517 r15600  
    5757if ( ! defined('EDIT_ANY_USER') || ! EDIT_ANY_USER ) // back compat constant.
    5858    add_filter( 'enable_edit_any_user_configuration', '__return_false' );
     59add_filter( 'force_filtered_html_on_import', '__return_true' );
     60
    5961
    6062// WP_HOME and WP_SITEURL should not have any effect in MS
Note: See TracChangeset for help on using the changeset viewer.