[wp-trac] [WordPress Trac] #27966: wp_insert_term checking term with slug only without taxonomy
WordPress Trac
noreply at wordpress.org
Tue Apr 22 09:14:20 UTC 2014
#27966: wp_insert_term checking term with slug only without taxonomy
--------------------------+------------------------------
Reporter: aalakkad | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by aalakkad):
To fix it, change line 2430 in (wp-includes/taxonomy.php) to:
{{{
if ( $term_id = term_exists($slug, $taxonomy) ) {
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27966#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list