mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-24 23:34:30 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@47328 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -154,6 +154,7 @@ require __DIR__ . '/exceptions.php';
|
||||
require __DIR__ . '/utils.php';
|
||||
require __DIR__ . '/spy-rest-server.php';
|
||||
require __DIR__ . '/class-wp-rest-test-search-handler.php';
|
||||
require __DIR__ . '/class-wp-rest-test-configurable-controller.php';
|
||||
require __DIR__ . '/class-wp-fake-block-type.php';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user