[wp-trac] [WordPress Trac] #46261: Args for register_post_type() missing blocks $template.

WordPress Trac noreply at wordpress.org
Thu Sep 24 14:25:46 UTC 2020

#46261: Args for register_post_type() missing blocks $template.
 Reporter:  milana_cap    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  5.6
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
Changes (by joyously):

 * status:  closed => reopened
 * resolution:  fixed =>


 This change doesn't seem to cover it. The register_post_type function
 simply stores the args in a WP_Post_Type object. That object has no
 property or method for a 'template'.
 Listing a 'template' argument on this function doesn't document it

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

More information about the wp-trac mailing list