WordPress.org

Make WordPress Core

Opened 12 months ago

Last modified 10 months ago

#24216 closed defect (bug)

wp_unique_term_slug uses variable that doesn't exist — at Version 2

Reported by: lonnylot Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Taxonomy Keywords: has-patch
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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.

Change History (2)

comment:1 SergeyBiryukov12 months ago

  • Milestone changed from Awaiting Review to 3.6
  • Version changed from trunk to 2.5

Introduced in [6326].

comment:2 SergeyBiryukov12 months ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.