[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 15:53:35 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 desrosj):

 It appears that dynamic route registration was added in
 [https://github.com/WordPress/gutenberg/pull/5602], more specifically
 [https://github.com/WordPress/gutenberg/pull/5602/commits/655787740e2d21e57142642f3b0cece83c3691d7
 6557877].

 `$block->attributes` being dynamically passed to the `properties` for each
 endpoint seems to be the reason behind that.

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


More information about the wp-trac mailing list