Make WordPress Core


Ignore:
Timestamp:
12/19/2007 05:45:50 PM (18 years ago)
Author:
ryan
Message:

Allows 0 titles when sanitizing. Props mdawaffe. fixes #5293

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r6378 r6409  
    708708        $where = $wpdb->prepare( "t.term_id = %d", $term );
    709709    } else {
    710         if ( ! $term = sanitize_title($term) )
     710        if ( '' === $term = sanitize_title($term) )
    711711            return 0;
    712712        $where = $wpdb->prepare( "t.slug = %s", $term );
Note: See TracChangeset for help on using the changeset viewer.