Plugins: Correct the item schema for the plugins REST API endpoint.

The `author` property contains the string name of the plugin author.

Props narenin.

Fixes #61920

Built from https://develop.svn.wordpress.org/trunk@59031


git-svn-id: http://core.svn.wordpress.org/trunk@58427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2024-09-17 21:33:14 +00:00
parent 7629bd782d
commit 757729e878
2 changed files with 2 additions and 2 deletions

View File

@ -913,7 +913,7 @@ class WP_REST_Plugins_Controller extends WP_REST_Controller {
),
'author' => array(
'description' => __( 'The plugin author.' ),
'type' => 'object',
'type' => 'string',
'readonly' => true,
'context' => array( 'view', 'edit' ),
),

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.7-alpha-59030';
$wp_version = '6.7-alpha-59031';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.