Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 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's profile foolswisdom Owned by: ryan's profile 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)

#1 @foolswisdom
17 years ago

  • Description modified (diff)

#2 @ryan
17 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

#3 @foolswisdom
17 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.