Changeset 12133
- Timestamp:
- 10/19/2022 02:47:56 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r11410 r12133 806 806 $required_valid_props, 807 807 function( $is_valid, $prop ) use ( $error ) { 808 return $is_valid && ( false === strpos( $error, $prop ) ); 808 $prop_field = substr( $prop, 11, -1 ); // 'name' in 'block.json[name]' 809 return ( 810 $is_valid && 811 ( false === strpos( $error, $prop ) ) && 812 // String in rest_validate_object_value_from_schema() 813 ( false === strpos( $error, "{$prop_field} is a required property of block.json." ) ) 814 ); 809 815 }, 810 816 true
Note: See TracChangeset
for help on using the changeset viewer.