We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab83cf7 commit bb75e9aCopy full SHA for bb75e9a
src/wp-includes/rest-api.php
@@ -243,7 +243,7 @@ function rest_sanitize_schema_properties_recursive( $data ) {
243
244
// Convert empty properties array to empty object.
245
if ( isset( $data_array['properties'] ) && is_array( $data_array['properties'] ) && empty( $data_array['properties'] ) ) {
246
- $data_array['properties'] = new stdClass();
+ $data_array['properties'] = (object) array();
247
}
248
249
// Process nested elements recursively.
0 commit comments