WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4864 closed defect (bug) (fixed)

Convert Category to Tag when Cat. already exists as tag results in warning of duplicate entry

Reported by: foolswisdom Owned by: ryan
Milestone: 2.3 Priority: normal
Severity: normal Version: 2.3
Component: General Keywords:
Focuses: Cc:

Description (last modified by foolswisdom)

Convert Category to Tag when Cat. already exists as tag results in warning of duplicate entry

ENV: WP trunk r5976 (2.3beta1+)

Repro:

  1. Create a post with category and tag of 'same'
  2. Convert 'same' category to tag

RESULTS

Converting category #4...

WordPress database error: [Duplicate entry '4-post_tag' for key 2]
UPDATE wp_term_taxonomy SET taxonomy = 'post_tag' WHERE term_id = '4' AND taxonomy = 'category'
Converted successfully.

Change History (3)

comment:1 foolswisdom7 years ago

  • Description modified (diff)

comment:2 ryan7 years ago

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

(In [5980]) Don't convert category to tag if tag of the same name already exists. fixes #4864

comment:3 foolswisdom7 years ago

(In [6080]) If a category is already a tag, don't put it in the list of categories to convert. fixes #4955

Note: See TracTickets for help on using tickets.