Opened 10 years ago
Closed 10 years ago
#36265 closed defect (bug) (invalid)
SHOW FULL COLUMNS FROM from `wp_posts`
| Reported by: | klassicd | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | 4.4.2 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: |
Description
I can successfully register post types greater than 20 characters using register_post_type() which causes the database to fail silently when I try to insert a custom post using wp_insert_post(). The error is SHOW FULL COLUMNS FROM from wp_posts and can be fixed by increasing the post_type column size.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@klassicd You can no longer successfully register a post_type > 20 characters after #28683 and #13709. You may not be noticing that your use of the
register_post_type()function is returning aWP_Errorobject and a doing it wrong message.