Skip to:
Content

bbPress.org

Changeset 1218


Ignore:
Timestamp:
03/04/2008 11:28:13 PM (16 years ago)
Author:
mdawaffe
Message:

allow topic titles and topic slugs which sanitize to false fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.php

    r1203 r1218  
    253253        $topic_title = apply_filters( 'pre_topic_title', $topic_title, $topic_id );
    254254        $topic_title = bb_trim_for_db( $topic_title, 150 );
    255         if ( !$topic_title )
     255        if ( strlen($topic_title) < 1 )
    256256            return false;
    257257    }
     
    264264        $topic_slug = $_topic_slug = bb_slug_sanitize( $topic_slug ? $topic_slug : $topic_title );
    265265        if ( strlen( $_topic_slug ) < 1 )
    266             return false;
     266            $topic_slug = $_topic_slug = '0';
    267267
    268268        while ( is_numeric($topic_slug) || $existing_slug = $bbdb->get_var( $bbdb->prepare( $slug_sql, $topic_slug, $topic_id ) ) )
Note: See TracChangeset for help on using the changeset viewer.