Make WordPress Core

Changeset 39103


Ignore:
Timestamp:
11/03/2016 01:25:48 AM (10 years ago)
Author:
rachelbaker
Message:

REST API: Use the items attribute for the taxonomies types schema property for proper sanitization/validation.

Props danielbachhuber, joehoyle.
Fixes #38631.

File:
1 edited

Legend:

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

    r39031 r39103  
    280280                                        'description'  => __( 'Types associated with resource.' ),
    281281                                        'type'         => 'array',
     282                                        'items'        => array(
     283                                                'type' => 'string',
     284                                        ),
    282285                                        'context'      => array( 'view', 'edit' ),
    283286                                        'readonly'     => true,
Note: See TracChangeset for help on using the changeset viewer.