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

WordPress Trac noreply at wordpress.org
Mon Feb 21 05:54:24 UTC 2022


#55212: PHP Notice: Array to string conversion in admin ajax points.
----------------------------+-----------------------------
 Reporter:  dd32            |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  lowest          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  trivial         |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 Requests similar to the following trigger a PHP Notice:

  - https://example.org/wp-admin/admin-ajax.php?action[]=testing
  - https://example.org/wp-admin/admin-post.php?action[]=testing

 {{{
 PHP Notice:  Array to string conversion in ...
 }}}

 While it would be possible for a plugin to be expecting `wp_ajax_Array` or
 `admin_post_Array` to be fired. I don't see these as valid or remotely
 expected use-cases though.

 Additionally, this applies the changes in response-code to the admin-ajax
 endpoint in [41120] & [41926] to the admin-post endpoint.

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


More information about the wp-trac mailing list