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-posts-controller.php

    r39239 r39250  
    8787                    'password' => array(
    8888                        'description' => __( 'The password for the post if it is password protected.' ),
     89                        'type'        => 'string',
    8990                    ),
    9091                ),
     
    20702071            'description'       => __( 'Limit result set to posts with one or more specific slugs.' ),
    20712072            'type'              => 'array',
     2073            'items'             => array(
     2074                'type'          => 'string',
     2075            ),
    20722076            'sanitize_callback' => 'wp_parse_slug_list',
    20732077        );
Note: See TracChangeset for help on using the changeset viewer.