Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/23/2013 01:00:51 PM (12 years ago)
Author:
netweb
Message:

Include support for custom topic tag slugs and descriptions during import. Props netweb. Fixes #2399

  • Support included for bbPress v1.x , Drupal, Example, PHPFox, vBulletin v3.x & v4.x
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/converter.php

    r5170 r5176  
    980980                            case 'tags':
    981981                                $post_id = wp_set_object_terms( $insert_postmeta['objectid'], $insert_postmeta['name'], 'topic-tag', true );
    982                                 break;
     982                                $term = get_term_by( 'name', $insert_postmeta['name'], 'topic-tag');
     983                                if ( false !== $term ) {
     984                                    wp_update_term( $term->term_id, 'topic-tag', array(
     985                                        'description' => $insert_postmeta['description'],
     986                                        'slug'        => $insert_postmeta['slug']
     987                                    ) );
     988                                }
     989                                break;
    983990
    984991                            /** Forum, Topic, Reply ***************************/
Note: See TracChangeset for help on using the changeset viewer.