WordPress.org

Make WordPress Core

Ticket #5377: import-deferred-counts-r6340.patch

File import-deferred-counts-r6340.patch, 613 bytes (added by tellyworth, 12 years ago)
  • wordpress/wp-admin/import/wordpress.php

     
    440440
    441441                $this->file = get_attached_file($this->id);
    442442                $this->get_authors_from_post();
     443                wp_defer_term_counting(true);
    443444                $this->get_entries(array(&$this, 'process_post'));
    444445                $this->process_categories();
    445446                $this->process_tags();
    446447                $result = $this->process_posts();
     448                wp_defer_term_counting(false);
    447449                if ( is_wp_error( $result ) )
    448450                        return $result;
    449451        }