WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#36265 closed defect (bug) (invalid)

SHOW FULL COLUMNS FROM from `wp_posts`

Reported by: 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
4 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 4 years ago by rachelbaker (previous) (diff)

#2 @SergeyBiryukov
4 years ago

  • Component changed from General to Posts, Post Types

#3 @dd32
3 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.