PHP Warning: array_intersect_key(): Expected parameter 1 to be an array, string given in /data/wordpress/htdocs/wordpress/wp-includes/rest-api/class-wp-rest-server.php on line 1402
So it seemed to me that there's something wrong with the id argument in the process endpoint.
Based on the docs it seems that the argument items should have a key and a value. An empty array as value for the id key (['id' => []]) would apparently work as well, but might as well add a validation.
I got these warnings in the log:
And later, in the stack trace:
So it seemed to me that there's something wrong with the
id
argument in theprocess
endpoint.Based on the docs it seems that the argument items should have a key and a value. An empty array as value for the
id
key (['id' => []]
) would apparently work as well, but might as well add a validation.