[wp-trac] [WordPress Trac] #37667: Handle post type support in `WP_Post_Type`

WordPress Trac noreply at wordpress.org
Thu Aug 18 13:26:02 UTC 2016


#37667: Handle post type support in `WP_Post_Type`
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Posts, Post Types                    |  Review
 Severity:  normal                               |     Version:  4.6
 Keywords:  has-patch 2nd-opinion needs-unit-    |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by flixos90):

 @swissspidy: What do you think about the (possible) problem with adding
 post type support before the post type is registered? How should we handle
 this? Add bool return values to `add_post_type_support()`? Or return
 `WP_Error`? Or `_doing_it_wrong()`?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37667#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list