WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#20832 closed defect (bug) (duplicate)

wp_unique_term_slug() never uses the query excluding the given term_id

Reported by: 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_ 2 years ago.
20832.removal.diff (683 bytes) - added by duck_ 2 years ago.

Download all attachments as: .zip

Change History (3)

duck_2 years ago

duck_2 years ago

comment:1 nacin2 years ago

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