Commit 757729e878 for wordpress.org
commit 757729e878cbc4267b6426e8e17e732b7ab0124d
Author: John Blackbourn <johnbillion@git.wordpress.org>
Date: Tue Sep 17 21:33:14 2024 +0000
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
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
index 8d24b60db2..d0dd5fce4c 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
@@ -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' ),
),
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 3e5f715016..d5aa4e8bb6 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -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.