mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Add force_filtered_html_on_import filter. fixes #14818.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2570a9e7df
commit
7e30a69c07
@ -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]);
|
||||
|
||||
|
@ -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' );
|
||||
|
Loading…
Reference in New Issue
Block a user