[wp-trac] [WordPress Trac] #51231: prepare_attributes_for_render should pass $attribute_name to rest_validate_value_from_schema

WordPress Trac noreply at wordpress.org
Tue Nov 10 00:45:34 UTC 2020


#51231: prepare_attributes_for_render should pass $attribute_name to
rest_validate_value_from_schema
--------------------------+-----------------------
 Reporter:  bobbingwide   |       Owner:  helen
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.6
Component:  Editor        |     Version:  5.5
 Severity:  minor         |  Resolution:  fixed
 Keywords:  commit        |     Focuses:  rest-api
--------------------------+-----------------------

Comment (by auxjoel):

 I changed this line 230 in my class-wp-block-type.php file to be:
 $is_valid = rest_validate_value_from_schema( $value, $schema,
 $attribute_name );

 but I am still receiving the error. Is there any thing else I adjust?

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


More information about the wp-trac mailing list