diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-controller.php index d9d60d2ee9..b9c05eb894 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-controller.php @@ -451,7 +451,7 @@ abstract class WP_REST_Controller { continue; } - if ( ! in_array( $field_name, $requested_fields, true ) ) { + if ( ! rest_is_field_included( $field_name, $requested_fields ) ) { continue; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 7bc6ddb21a..0bfd0c5cc2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47510'; +$wp_version = '5.5-alpha-47511'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.