WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 6 months ago

#21950 closed enhancement (fixed)

Don't create shared terms

Reported by: scribu Owned by: boonebgorges
Milestone: 4.1 Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: Cc:

Description (last modified by scribu)

Step 1: Split shared terms: #5809

Step 2: Don't create new shared terms: this ticket.

Step 3: Profit.

Change History (12)

comment:1 @scribu3 years ago

  • Description modified (diff)

comment:2 @greenshady3 years ago

  • Cc justin@… added

comment:3 @sirzooro3 years ago

  • Cc sirzooro added

comment:5 @SergeyBiryukov2 years ago

#23199 was marked as a duplicate.

comment:6 @Chouby2 years ago

  • Cc frederic.demarle@… added

comment:7 @johnbillion2 years ago

  • Cc johnbillion added

comment:8 @alexvorn22 years ago

  • Cc alexvornoffice@… added

this should have a higher priority

comment:9 @wonderboymusic21 months ago

  • Keywords needs-patch added

comment:10 @ircbot10 months ago

This ticket was mentioned in IRC in #wordpress-dev by simonwheatley. View the logs.

comment:11 @boonebgorges6 months ago

  • Keywords needs-patch removed
  • Milestone changed from Awaiting Review to 4.1
  • Owner set to boonebgorges
  • Status changed from new to accepted

The recent patches on #5809 will resolve this ticket.

comment:12 @boonebgorges6 months ago

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

In 30240:

Do not create shared taxonomy terms.

A "shared" term occurs when two entries in the wp_term_taxonomy table share a
single term_id, and thereby correspond to the same row in wp_terms. This
changeset stops the practice of creating shared terms: each new row in
wp_term_taxonomy will receive its own row in wp_terms. The new strategy
for term creation depends on whether the installation's database schema is up
to date for 4.1:

  • If so, terms are allowed to be created with the same slug as an existing term, as long as they are in different taxonomies and do not share a parent. Thus, a new tag with the slug 'wordpress' can exist alongside a category with the slug 'wordpress'.
  • If not, new terms will be forced to have unique slugs. Thus, on an installation containing a category with the slug 'wordpress', a new tag 'WordPress' will get the slug 'wordpress-2'.

Fixes #21950. See #5809.

Note: See TracTickets for help on using tickets.