Add force_filtered_html_on_import filter. fixes #14818.

git-svn-id: https://develop.svn.wordpress.org/trunk@15600 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-09-09 02:43:18 +00:00
parent 23850cf615
commit 5c05a437a9
2 changed files with 4 additions and 2 deletions

View File

@ -194,8 +194,8 @@ if ( isset($plugin_page) ) {
define('WP_IMPORTING', true);
if ( is_multisite() )
kses_init_filters(); // Always filter imported data with kses.
if ( apply_filters( 'force_filtered_html_on_import', false ) )
kses_init_filters(); // Always filter imported data with kses on multisite.
call_user_func($wp_importers[$importer][2]);

View File

@ -56,6 +56,8 @@ if ( ! defined('POST_BY_EMAIL') || ! POST_BY_EMAIL ) // back compat constant.
add_filter( 'enable_post_by_email_configuration', '__return_false' );
if ( ! defined('EDIT_ANY_USER') || ! EDIT_ANY_USER ) // back compat constant.
add_filter( 'enable_edit_any_user_configuration', '__return_false' );
add_filter( 'force_filtered_html_on_import', '__return_true' );
// WP_HOME and WP_SITEURL should not have any effect in MS
remove_filter( 'option_siteurl', '_config_wp_siteurl' );