wphooks.info - force_filtered_html_on_import

force_filtered_html_on_import

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

wp-admin/admin.php:
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
	/**
	 * 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 );