[wp-trac] [WordPress Trac] #50620: REST API: regression after introducing changes how block renderer endpoint is now defined

WordPress Trac noreply at wordpress.org
Thu Jul 9 14:14:24 UTC 2020


#50620: REST API: regression after introducing changes how block renderer endpoint
is now defined
-------------------------------------------------+-------------------------
 Reporter:  manooweb                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.5
Component:  REST API                             |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch needs-unit-tests good-   |     Focuses:
  first-bug                                      |
-------------------------------------------------+-------------------------

Comment (by manooweb):

 Hi Timothy,

 You're welcome

 Of course, I can try.
 What do you mean excatly by duplicate

 Create a {{{ sanitize_callback }}} entry which duplicates the code of {{{
 validate_callback }}} except the call to {{{
 rest_validate_value_from_schema }}} replaced by a call to {{{
 rest_sanitize_value_from_schema }}} ?

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


More information about the wp-trac mailing list