Defer term counting during import. Props tellyworth. fixes #5377

git-svn-id: https://develop.svn.wordpress.org/trunk@6376 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-12-12 05:14:00 +00:00
parent 3bf9ba914b
commit e6befddf5f
2 changed files with 39 additions and 2 deletions
+2
View File
@@ -446,11 +446,13 @@ class WP_Import {
$this->file = $file;
$this->get_authors_from_post();
wp_defer_term_counting(true);
$this->get_entries();
$this->process_categories();
$this->process_tags();
$result = $this->process_posts();
$this->backfill_parents();
wp_defer_term_counting(false);
if ( is_wp_error( $result ) )
return $result;
}