Opened 9 years ago
Closed 8 years ago
#36265 closed defect (bug) (invalid)
SHOW FULL COLUMNS FROM from `wp_posts`
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.4.2 |
Component: | Posts, Post Types | Keywords: | close |
Focuses: | Cc: |
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.
@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_Error
object and a doing it wrong message.