We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2212d9 commit 496d908Copy full SHA for 496d908
src/wp-includes/abilities.php
@@ -100,7 +100,8 @@ function wp_register_core_abilities(): void {
100
),
101
102
'additionalProperties' => false,
103
- 'default' => array(),
+ // Casting to object so when it is serilized to JSON it shows as {} instead of [].
104
+ 'default' => (object) array(),
105
106
'output_schema' => array(
107
'type' => 'object',
@@ -220,7 +221,6 @@ function wp_register_core_abilities(): void {
220
221
'db_server_info' => array(
222
'type' => 'string',
223
'description' => __( 'The database server vendor and version string reported by the driver.' ),
- 'examples' => array( '8.0.34', '10.11.6-MariaDB' ),
224
225
'wp_version' => array(
226
0 commit comments