Changeset 46802
- Timestamp:
- 11/29/2019 09:57:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
r46696 r46802 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 */ … … 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 }
Note: See TracChangeset
for help on using the changeset viewer.