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

WordPress Trac noreply at wordpress.org
Wed Oct 17 17:53:48 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  |     Focuses:  rest-api
--------------------------------------+-----------------------

Comment (by aduth):

 While effort has stalled, part of the changes included in the following
 pull request had proposed the removal of the custom controller for
 reusable blocks:

 https://github.com/WordPress/gutenberg/pull/7453

 It's not entirely relevant to the main point of the pull request, but it
 had been prompted in the course of its development as a question: Is there
 really any reason we need custom endpoints, vs. simply using the existing
 `/wp/v2/posts` endpoints (as reusable blocks are simply posts of type
 `wp_block`)?

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


More information about the wp-trac mailing list