Make WordPress Core


Ignore:
Timestamp:
09/17/2024 09:31:14 PM (5 months ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php

    r56559 r59031  
    914914                'author'       => array(
    915915                    'description' => __( 'The plugin author.' ),
    916                     'type'        => 'object',
     916                    'type'        => 'string',
    917917                    'readonly'    => true,
    918918                    'context'     => array( 'view', 'edit' ),
Note: See TracChangeset for help on using the changeset viewer.