Changeset 6424

Show
Ignore:
Timestamp:
12/19/07 23:25:11 (1 year ago)
Author:
ryan
Message:

Don't create blank terms. Props ionfish and jhodgdon. fixes #5494

Files:

Legend:

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

    r6409 r6424  
    12061206 
    12071207    foreach ($terms as $term) { 
     1208        if ( !strlen(trim($term)) ) 
     1209            continue; 
     1210         
    12081211        if ( !$id = is_term($term, $taxonomy) ) 
    12091212            $id = wp_insert_term($term, $taxonomy);