[wp-trac] [WordPress Trac] #45098: Introduce WP_REST_Block_Renderer_Controller and WP_REST_Blocks_Controller classes

WordPress Trac noreply at wordpress.org
Tue Oct 23 07:57:11 UTC 2018


#45098: Introduce WP_REST_Block_Renderer_Controller and WP_REST_Blocks_Controller
classes
------------------------------------------------+-----------------------
 Reporter:  danielbachhuber                     |       Owner:  desrosj
     Type:  task (blessed)                      |      Status:  assigned
 Priority:  normal                              |   Milestone:  5.0
Component:  REST API                            |     Version:
 Severity:  normal                              |  Resolution:
 Keywords:  has-patch has-unit-tests fixed-5.0  |     Focuses:  rest-api
------------------------------------------------+-----------------------

Comment (by pento):

 I had to add those caps to the post registration, as `edit_post` and
 `delete_post` ultimately map to them.

 I'm undecided about what to do with CPTs. I'm inclined to leave the
 behaviour as is, if a CPT chooses to allow reusable blocks, they need to
 take that into account in how they map caps to roles.

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


More information about the wp-trac mailing list