[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 Sep 28 14:02:50 UTC 2022


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

Comment (by SergeyBiryukov):

 In [changeset:"54346" 54346]:
 {{{
 #!CommitTicketReference repository="" revision="54346"
 I18N: Move code out of a translatable string in `register_rest_route()`.

 To simplify the string and exclude any parts that don't require
 translation, `$args` can be moved out of the string and added as a
 placeholder.

 Follow-up to [54339].

 See #51986.
 }}}

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


More information about the wp-trac mailing list