#55212 closed defect (bug) (fixed)
PHP Notice: Array to string conversion in admin ajax points.
| Reported by: | dd32 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | lowest | Milestone: | 6.0 |
| Component: | Administration | Version: | |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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.
Change History (4)
This ticket was mentioned in PR #2337 on WordPress/wordpress-develop by dd32.
5 years ago
#1
- Keywords has-patch added
SergeyBiryukov commented on PR #2337:
5 years ago
#4
Thanks for the PR! Merged in https://core.trac.wordpress.org/changeset/52813.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/55212