[wp-trac] [WordPress Trac] #59841: Post 6.4 Upgrade Fatal:
WordPress Trac
noreply at wordpress.org
Wed Nov 8 17:07:36 UTC 2023
#59841: Post 6.4 Upgrade Fatal:
--------------------------+------------------------------
Reporter: rebasaurus | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by rebasaurus):
I copied and pasted the wrong example in the original description
:facepalm:. I meant for `$schema` to be where it triggers the fatal:
{{{
[
'type' => 'array',
'description' => 'array of strings for screenshot URLs',
'default' => [],
'items' => [
'type' => 'string'
]
]
}}}
When `rest_default_additional_properties_to_false()` gets recursively
called, it assumes `$schema['items']` is an array, but in this case, it's
a string.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59841#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list