Make WordPress Core


Ignore:
Timestamp:
02/20/2020 04:56:17 PM (5 years ago)
Author:
TimothyBlynJacobs
Message:

REST API: Don't assume all item schemas have properties.

All schema types, not just objects, are permitted as the base type of a resource. A future patch could add validation support for those types, but this fix only prevents a PHP warning from being issued.

Props dhavalkasvala, johnwatkins0, birgire.
Fixes #48785.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/bootstrap.php

    r47198 r47328  
    155155require __DIR__ . '/spy-rest-server.php';
    156156require __DIR__ . '/class-wp-rest-test-search-handler.php';
     157require __DIR__ . '/class-wp-rest-test-configurable-controller.php';
    157158require __DIR__ . '/class-wp-fake-block-type.php';
    158159
Note: See TracChangeset for help on using the changeset viewer.