[wp-trac] [WordPress Trac] #45220: register_rest_field doesn't work

WordPress Trac noreply at wordpress.org
Mon Oct 29 15:54:39 UTC 2018


#45220: register_rest_field doesn't work
-------------------------------+------------------------------
 Reporter:  Dudo               |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  REST API           |     Version:  5.0
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by TimothyBlynJacobs):

 This is because the schema is set to `null` so `get_fields_for_resposne()`
 doesn't pick it up since it isn't registered in the schema.

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


More information about the wp-trac mailing list