mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-28 10:29:25 +00:00
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. Built from https://develop.svn.wordpress.org/trunk@47328 git-svn-id: http://core.svn.wordpress.org/trunk@47122 1a063a9b-81f0-0310-95a4-ce76da25c4cd