wphooks.info - force_filtered_html_on_import

force_filtered_html_on_import

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/admin.php:
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
	/**
	 * Whether to filter imported data through kses on import.
	 *
	 * Multisite uses this hook to filter all data through kses by default,
	 * as a super administrator may be assisting an untrusted user.
	 *
	 * @since 3.1.0
	 *
	 * @param bool $force Whether to force data to be filtered through kses. Default false.
	 */
	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]);

	include(ABSPATH . 'wp-admin/admin-footer.php');

	// Make sure rules are flushed
	flush_rewrite_rules(false);