Make WordPress Core

Ticket #54973: 54973.2.patch

File 54973.2.patch, 510 bytes (added by enshrined, 3 years ago)
  • src/class-wp-import.php

    diff --git a/src/class-wp-import.php b/src/class-wp-import.php
    index 6d994aa..e1cb094 100644
    a b class WP_Import extends WP_Importer { 
    423423                                'category_description' => wp_slash( $description ),
    424424                        );
    425425
    426                         $id = wp_insert_category( $data );
     426                        $id = wp_insert_category( $data, true );
    427427                        if ( ! is_wp_error( $id ) && $id > 0 ) {
    428428                                if ( isset( $cat['term_id'] ) ) {
    429429                                        $this->processed_terms[ intval( $cat['term_id'] ) ] = $id;