From 78d4db992421f26c041f5fa09168f5393040d536 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 29 Jun 2022 14:17:16 +0000 Subject: [PATCH] REST API: Use the `integer` type for `page_on_front` and `page_for_posts` options. This adjusts the newly added options in the settings endpoint to use the `integer` type instead of `number`. Since these are page IDs and are not supposed to be floats, `integer` is the correct type. Follow-up to [53588]. See #56058. Built from https://develop.svn.wordpress.org/trunk@53589 git-svn-id: http://core.svn.wordpress.org/trunk@53177 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/option.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/option.php b/wp-includes/option.php index def80ed18f..eeb751c04c 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -2236,7 +2236,7 @@ function register_initial_settings() { 'page_on_front', array( 'show_in_rest' => true, - 'type' => 'number', + 'type' => 'integer', 'description' => __( 'The ID of the page that should be displayed on the front page' ), ) ); @@ -2246,7 +2246,7 @@ function register_initial_settings() { 'page_for_posts', array( 'show_in_rest' => true, - 'type' => 'number', + 'type' => 'integer', 'description' => __( 'The ID of the page that should display the latest posts' ), ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a59e542614..47e84acb42 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53588'; +$wp_version = '6.1-alpha-53589'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.