[wp-trac] [WordPress Trac] #55212: PHP Notice: Array to string conversion in admin ajax points.

WordPress Trac noreply at wordpress.org
Wed Mar 2 14:58:25 UTC 2022


#55212: PHP Notice: Array to string conversion in admin ajax points.
----------------------------+-----------------------------
 Reporter:  dd32            |       Owner:  SergeyBiryukov
     Type:  defect (bug)    |      Status:  closed
 Priority:  lowest          |   Milestone:  6.0
Component:  Administration  |     Version:
 Severity:  trivial         |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52813" 52813]:
 {{{
 #!CommitTicketReference repository="" revision="52813"
 Administration: Require a valid action parameter to be set for `admin-
 ajax.php` requests.

 This avoids `Array to string conversion` PHP notices when an array is
 passed as the `action` parameter.

 Additionally, send an appropriate HTTP response status code when an
 invalid action is passed to `admin-post.php`.

 Follow-up to [13175], [19738], [41120], [41926].

 Props dd32.
 Fixes #55212.
 }}}

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


More information about the wp-trac mailing list