[wp-trac] [WordPress Trac] #42117: Move inline docs from register_post_type() to WP_Post_Type::set_props()

WordPress Trac noreply at wordpress.org
Sat Jun 19 21:07:25 UTC 2021


#42117: Move inline docs from register_post_type() to WP_Post_Type::set_props()
-------------------------------+---------------------
 Reporter:  birgire            |       Owner:  (none)
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  5.7
Component:  Posts, Post Types  |     Version:  4.6
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:  docs
-------------------------------+---------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => fixed
 * milestone:  Awaiting Review => 5.7


Comment:

 Hi there, thanks for the patch! Sorry it took so long for someone to get
 back to you.

 Since `register_post_type()` is the public API here, I think it makes
 sense to flip this around and add a reference to `register_post_type()` in
 the documentation for `WP_Post_Type::set_props()`. Looks like that was
 already done in [49790] / #51800.

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


More information about the wp-trac mailing list