mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user