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
This commit is contained in:
parent
126de33a0d
commit
78d4db9924
|
@ -2236,7 +2236,7 @@ function register_initial_settings() {
|
||||||
'page_on_front',
|
'page_on_front',
|
||||||
array(
|
array(
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
'type' => 'number',
|
'type' => 'integer',
|
||||||
'description' => __( 'The ID of the page that should be displayed on the front page' ),
|
'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',
|
'page_for_posts',
|
||||||
array(
|
array(
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
'type' => 'number',
|
'type' => 'integer',
|
||||||
'description' => __( 'The ID of the page that should display the latest posts' ),
|
'description' => __( 'The ID of the page that should display the latest posts' ),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue