[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
Wed Dec 9 11:44:09 UTC 2020


#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:  Awaiting Review
Component:  REST API      |    Version:  5.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When editing a page in the Gutenberg editor (that is built-in, not the
 plugin), I see this Warning on a page:
 ```
 <b>Warning</b>:  array_intersect_key(): Expected parameter 1 to be an
 array, string given in <b>/home/cosydale/public_html/ovirium.com/wp-
 includes/rest-api/class-wp-rest-server.php</b> on line <b>1402</b><br />
 ```

 Disable REST plugin is not installed.

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


More information about the wp-trac mailing list