WordPress.org

Make WordPress Core

Changeset 6050


Ignore:
Timestamp:
09/06/2007 10:07:23 PM (11 years ago)
Author:
ryan
Message:

Case terms to int so we don't try to create new terms with the term ids as the names. fixes #4920

File:
1 edited

Legend:

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

    r6048 r6050  
    681681        else
    682682            $terms = array_diff($terms, array($term));
     683        $terms = array_map('intval', $terms);
    683684        wp_set_object_terms($object, $terms, $taxonomy);
    684685    }
Note: See TracChangeset for help on using the changeset viewer.