Check both slug and name when determining if is_term(). fixes #6593 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@8433 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-07-24 19:28:40 +00:00
parent ee18970580
commit 6fbbcbfb6e
3 changed files with 26 additions and 9 deletions

View File

@@ -19,7 +19,8 @@ $wp_queries="CREATE TABLE $wpdb->terms (
slug varchar(200) NOT NULL default '',
term_group bigint(10) NOT NULL default 0,
PRIMARY KEY (term_id),
UNIQUE KEY slug (slug)
UNIQUE KEY slug (slug),
KEY name (name)
) $charset_collate;
CREATE TABLE $wpdb->term_taxonomy (
term_taxonomy_id bigint(20) NOT NULL auto_increment,