diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php index def80ed18f..eeb751c04c 100644 --- a/src/wp-includes/option.php +++ b/src/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/tests/qunit/fixtures/wp-api-generated.js b/tests/qunit/fixtures/wp-api-generated.js index 654a0bee07..485746dbc2 100644 --- a/tests/qunit/fixtures/wp-api-generated.js +++ b/tests/qunit/fixtures/wp-api-generated.js @@ -9635,12 +9635,12 @@ mockedApiResponse.Schema = { }, "page_on_front": { "description": "The ID of the page that should be displayed on the front page", - "type": "number", + "type": "integer", "required": false }, "page_for_posts": { "description": "The ID of the page that should display the latest posts", - "type": "number", + "type": "integer", "required": false }, "default_ping_status": {