[wp-trac] [WordPress Trac] #40413: Handle `register_post_type` support's array

WordPress Trac noreply at wordpress.org
Thu Sep 19 20:57:24 UTC 2019


#40413: Handle `register_post_type` support's array
-------------------------------------------------+-------------------------
 Reporter:  MaximeCulea                          |       Owner:  desrosj
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.3
Component:  Posts, Post Types                    |     Version:  2.9
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note                                           |
-------------------------------------------------+-------------------------

Comment (by desrosj):

 @MaximeCulea Ya, this is definitely an enhancement. Sorry for any
 confusion. "feature" is the nomenclature used by the
 `add_post_type_support()` function. The change in [46160] allows the
 arguments for support of a feature to be passed as an enhancement and will
 be included in the next release.

 I think it's preferable to update the docs for `register_post_type()` at
 the same time. Especially since the inline docs for the `supports`
 argument of that function is almost a direct copy of the inline docs from
 `add_post_type_support()`.

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


More information about the wp-trac mailing list