Changeset 48969
- Timestamp:
- 09/10/2020 04:32:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-type.php
r48275 r48969 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 ve batim.212 // processing and return verbatim. 213 213 if ( ! isset( $this->attributes ) ) { 214 214 return $attributes; … … 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 ] );
Note: See TracChangeset
for help on using the changeset viewer.