Ticket #48839: 48839.1.patch
File 48839.1.patch, 1.1 KB (added by , 5 years ago) |
---|
-
src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
126 126 * 127 127 * @since 4.7.0 128 128 * 129 * @param array 130 * @param int 129 * @param array $meta Array of meta parsed from the request. 130 * @param int $object_id Object ID to fetch meta for. 131 131 * @return null|WP_Error Null on success, WP_Error object on failure. 132 132 */ 133 133 public function update_value( $meta, $object_id ) { … … 435 435 436 436 $rest_args['schema'] = $this->default_additional_properties_to_false( $rest_args['schema'] ); 437 437 438 if ( ! in_array( $type, array( 'string', 'boolean', 'integer', 'number', 'array', 'object' ) ) ) {438 if ( ! in_array( $type, array( 'string', 'boolean', 'integer', 'number', 'array', 'object' ), true ) ) { 439 439 continue; 440 440 } 441 441