#21593 closed defect (bug) (fixed)
register_taxonomy() doesn't fail when taxonomy name too long
| Reported by: | psbook | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Taxonomy | Version: | 3.4.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description (last modified by )
The 'taxonomy' field of the 'term_taxonomy' table is VARCHAR(32), ie truncated at 32 characters. But register_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.
Attachments (1)
Change History (8)
#1
@
14 years ago
- Description modified (diff)
- Summary create_taxonomy() doesn't fail when taxonomy name too long → register_taxonomy() doesn't fail when taxonomy name too long
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In register_post_type(), we do:
Seems like a good thing here.