Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#13481 closed defect (bug) (fixed)

wp_insert_term() doesn't return an error, if post_tag already exists

Reported by: ocean90's profile ocean90 Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9
Component: Taxonomy Keywords: has-patch commit
Focuses: Cc:

Description

rboren > I bet its falling through down to 1649, where it returns the term without error.
Without inserting.

Because of that, on Post Tags page, the tag will be added more then once.

Attachments (1)

13481.diff (714 bytes) - added by ryan 15 years ago.

Download all attachments as: .zip

Change History (3)

@ryan
15 years ago

#1 @nacin
15 years ago

  • Keywords has-patch commit added; needs-patch removed

#2 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [14784]) If slug and name match an existing term in the same taxonomy at the same hieararchy level return error. fixes #13481

Note: See TracTickets for help on using tickets.