[wp-trac] [WordPress Trac] #51986: PHP Warning: array_intersect_key(): Expected parameter 1 to be an array, string given in class-wp-rest-server.php

WordPress Trac noreply at wordpress.org
Fri Sep 3 12:49:35 UTC 2021


#51986: PHP Warning: array_intersect_key(): Expected parameter 1 to be an array,
string given in class-wp-rest-server.php
---------------------------------------------+-----------------------------
 Reporter:  slaFFik                          |       Owner:  (none)
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  Future Release
Component:  Editor                           |     Version:  5.6
 Severity:  normal                           |  Resolution:
 Keywords:  php8 has-patch needs-unit-tests  |     Focuses:  rest-api
---------------------------------------------+-----------------------------

Comment (by johnmark8080):

 Thanks. Just noticed this error this week when editing posts, couldn't tie
 it back to any plugins. Applied the quick, temporary fix from @Hinjiriyo.
 No errors now (but what was trying and failing to the rest_api from the
 edit page?). It was more of a nuisance for me as it was possible to edit
 posts before and after applying the fix. I just didn't want users to be
 distressed by the error message. Hoping for a permanent fix soon.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51986#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list