WordPress.org

Make WordPress Core

Opened 21 months ago

Last modified 18 months ago

#21593 closed defect (bug)

create_taxonomy() doesn't fail when taxonomy name too long — at Initial Version

Reported by: psbook Owned by:
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.4.1
Component: Taxonomy Keywords: has-patch
Focuses: Cc:

Description

The 'taxonomy' field of the 'term_taxonomy' table is VARCHAR(32), ie truncated at 32 characters. But create_taxonomy() doesn't fail when you try to create a taxonomy with a unique name longer than this.

The effects are that terms can be added to 'terms' table along with corresponding entries in 'term_taxonomy', but that these can't be read back again. The taxonomy appears in the admin menus, but appears to be totally empty.

Change History (0)

Note: See TracTickets for help on using tickets.