Skip to content

Commit 496d908

Browse files
Fix: Core abilities schemas.
1 parent f2212d9 commit 496d908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/abilities.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ function wp_register_core_abilities(): void {
100100
),
101101
),
102102
'additionalProperties' => false,
103-
'default' => array(),
103+
// Casting to object so when it is serilized to JSON it shows as {} instead of [].
104+
'default' => (object) array(),
104105
),
105106
'output_schema' => array(
106107
'type' => 'object',
@@ -220,7 +221,6 @@ function wp_register_core_abilities(): void {
220221
'db_server_info' => array(
221222
'type' => 'string',
222223
'description' => __( 'The database server vendor and version string reported by the driver.' ),
223-
'examples' => array( '8.0.34', '10.11.6-MariaDB' ),
224224
),
225225
'wp_version' => array(
226226
'type' => 'string',

0 commit comments

Comments
 (0)