[wp-trac] [WordPress Trac] #24216: wp_unique_term_slug uses variable that doesn't exist

WordPress Trac noreply at wordpress.org
Sun Apr 28 23:13:36 UTC 2013


#24216: wp_unique_term_slug uses variable that doesn't exist
--------------------------+------------------
 Reporter:  lonnylot      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.6
Component:  Taxonomy      |     Version:  2.5
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------
Description changed by SergeyBiryukov:

Old description:

> http://core.trac.wordpress.org/browser/trunk/wp-
> includes/taxonomy.php#L2380
>
> $args\['term_id'\] doesn't exist. It should be $term->term_id.
>
> This means that even though the DB schema allows for different taxonomies
> to have the same slug the code will never allow it.

New description:

 http://core.trac.wordpress.org/browser/trunk/wp-
 includes/taxonomy.php#L2380

 `$args['term_id']` doesn't exist. It should be `$term->term_id`.

 This means that even though the DB schema allows for different taxonomies
 to have the same slug the code will never allow it.

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24216#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list