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

WordPress Trac noreply at wordpress.org
Tue Nov 3 04:17:10 UTC 2020


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

 * owner:  (none) => noisysocks
 * status:  reopened => reviewing


Comment:

 Thanks for the revised patch @metalandcoffee. It applies cleanly and
 everything still works when I set `template` on a post type locally.

 Two suggestions:

 1. Could you please also document the related `template_lock` argument and
 add a `template_lock` property to `WP_Post_Type`?

 2. Let's add a link to the relevant block editor documentation:
 https://developer.wordpress.org/block-editor/developers/block-api/block-
 templates/

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


More information about the wp-trac mailing list