Make WordPress Core


Ignore:
Timestamp:
11/15/2016 06:15:30 PM (8 years ago)
Author:
joehoyle
Message:

REST API: Clean up argument and property types.

There's a couple of places where we were missing type notes for arguments, which mainly affects documentation.

Props jnylen0.
Fixes #38792.

File:
1 edited

Legend:

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

    r39191 r39250  
    206206                'capabilities'     => array(
    207207                    'description'  => __( 'All capabilities used by the resource.' ),
    208                     'type'         => 'array',
    209                     'items'        => array(
    210                         'type' => 'string',
    211                     ),
     208                    'type'         => 'object',
    212209                    'context'      => array( 'edit' ),
    213210                    'readonly'     => true,
Note: See TracChangeset for help on using the changeset viewer.