Skip to content

Commit f79ad14

Browse files
committed
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 git-svn-id: https://develop.svn.wordpress.org/trunk@59031 602fd350-edb4-49c9-b593-d223f7449a82
1 parent cdd137e commit f79ad14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ public function get_item_schema() {
913913
),
914914
'author' => array(
915915
'description' => __( 'The plugin author.' ),
916-
'type' => 'object',
916+
'type' => 'string',
917917
'readonly' => true,
918918
'context' => array( 'view', 'edit' ),
919919
),

0 commit comments

Comments
 (0)