WordPress.org

Make WordPress Core

Changeset 6424


Ignore:
Timestamp:
12/19/2007 11:25:11 PM (14 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.