diff --git a/src/wp-includes/class-wp-block-type.php b/src/wp-includes/class-wp-block-type.php
index 572c3c39c1..93e1615f62 100644
|
a
|
b
|
class WP_Block_Type { |
| 209 | 209 | */ |
| 210 | 210 | public function prepare_attributes_for_render( $attributes ) { |
| 211 | 211 | // If there are no attribute definitions for the block type, skip |
| 212 | | // processing and return vebatim. |
| | 212 | // processing and return verbatim. |
| 213 | 213 | if ( ! isset( $this->attributes ) ) { |
| 214 | 214 | return $attributes; |
| 215 | 215 | } |
| … |
… |
class WP_Block_Type { |
| 227 | 227 | // its default, if one exists. This occurs by virtue of the missing |
| 228 | 228 | // attributes loop immediately following. If there is not a default |
| 229 | 229 | // assigned, the attribute value should remain unset. |
| 230 | | $is_valid = rest_validate_value_from_schema( $value, $schema ); |
| | 230 | $is_valid = rest_validate_value_from_schema( $value, $schema, $attribute_name ); |
| 231 | 231 | if ( is_wp_error( $is_valid ) ) { |
| 232 | 232 | unset( $attributes[ $attribute_name ] ); |
| 233 | 233 | } |