Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#13481 closed defect (bug) (fixed)

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

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

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 17 years ago.

Download all attachments as: .zip

Change History (3)

#1 @nacin
17 years ago

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

#2 @ryan
17 years ago

  • Resolution → fixed
  • Status new → 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.