[wp-trac] [WordPress Trac] #42737: Add method wp.api.getModelByType for retrieving api models

WordPress Trac noreply at wordpress.org
Tue Mar 6 23:27:51 UTC 2018


#42737: Add method wp.api.getModelByType for retrieving api models
-----------------------------+------------------------------
 Reporter:  mkaz             |       Owner:  adamsilverstein
     Type:  feature request  |      Status:  assigned
 Priority:  normal           |   Milestone:  5.0
Component:  REST API         |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:  javascript
-----------------------------+------------------------------

Comment (by mkaz):

 This is no longer needed to support Gutenberg, the calls were changed to
 no longer map into Backbone models but to go straight to the API for data.

 Change made in https://github.com/WordPress/gutenberg/pull/5253

 I still think this change is better way to map models instead of the
 routes which can lead to error, but probably doesn't make sense to include
 if there isn't going to be any code to use the new functions.

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


More information about the wp-trac mailing list