Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#36265 closed defect (bug) (invalid)

SHOW FULL COLUMNS FROM from `wp_posts`

Reported by: klassicd's profile klassicd 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)

#1 @rachelbaker
9 years ago

  • Keywords close added

@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 a WP_Error object and a doing it wrong message.

Last edited 9 years ago by rachelbaker (previous) (diff)

#2 @SergeyBiryukov
9 years ago

  • Component changed from General to Posts, Post Types

#3 @dd32
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

As above, post types longer than 20char are not supported and an error is thrown.

Note: See TracTickets for help on using tickets.