Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#20832 closed defect (bug) (duplicate)

wp_unique_term_slug() never uses the query excluding the given term_id

Reported by: duck_'s profile duck_ Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Taxonomy Keywords: has-patch
Focuses: Cc:

Description

$args is an undefined variable so the not-empty check always fails. See [6326].

We should either change this to $term->term_id or remove it completely as it has never been used. The former will require a bit more investigation to ensure that its addition now has no unintended consequences.

Attachments (2)

20832.diff (1001 bytes) - added by duck_ 13 years ago.
20832.removal.diff (683 bytes) - added by duck_ 13 years ago.

Download all attachments as: .zip

Change History (3)

@duck_
13 years ago

@duck_
13 years ago

#1 @nacin
13 years ago

  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.