Skip to:
Content

bbPress.org

Changeset 3363


Ignore:
Timestamp:
07/14/2011 01:47:10 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Limit length of forum and topic slugs to 200 chars in 1.x importer. Fixes #1564. Props cnorris23.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/importers/bbpress.php

    r3349 r3363  
    894894                        'comment_status' => 'closed',
    895895                        'ping_status'    => 'closed',
    896                         'post_name'      => $forum->forum_slug,
     896                        'post_name'      => ( strlen( $forum->forum_slug ) > 200 ) ? sanitize_title_with_dashes( $forum->forum_slug ) : $forum->forum_slug,
    897897                        'post_parent'    => !empty( $forum->forum_parent ) ? $forum_map[$forum->forum_parent] : 0,
    898898                        'post_type'      => bbp_get_forum_post_type(),
     
    951951                            'post_content'  => $first_post->post_text,
    952952                            'post_title'    => $topic->topic_title,
    953                             'post_name'     => $topic->topic_slug,
     953                            'post_name'     => ( strlen( $topic->topic_slug ) > 200 ) ? sanitize_title_with_dashes( $topic->topic_slug ) : $topic->topic_slug,
    954954                            'post_status'   => $topic_status,
    955955                            'post_date_gmt' => $topic->topic_start_time,
Note: See TracChangeset for help on using the changeset viewer.