Make WordPress Core


Ignore:
Timestamp:
12/12/2007 05:14:00 AM (19 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r6374 r6376  
    447447       
    448448        $this->get_authors_from_post();
     449        wp_defer_term_counting(true);
    449450        $this->get_entries();
    450451        $this->process_categories();
     
    452453        $result = $this->process_posts();
    453454        $this->backfill_parents();
     455        wp_defer_term_counting(false);
    454456        if ( is_wp_error( $result ) )
    455457            return $result;
Note: See TracChangeset for help on using the changeset viewer.