Opened 3 years ago

Closed 3 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:

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

Download all attachments as: .zip

Change History (3)

ryan3 years ago

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

comment:2   ryan3 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.