WP_Importer::stop_the_insanity()

In this article

Resets global variables that grow out of control during imports.

Source

public function stop_the_insanity() {
	global $wpdb, $wp_actions;
	// Or define( 'WP_IMPORTING', true );
	$wpdb->queries = array();
	// Reset $wp_actions to keep it from growing out of control.
	$wp_actions = array();
}

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.