#55212 closed defect (bug) (fixed)
PHP Notice: Array to string conversion in admin ajax points.
Reported by: | dd32 | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.0 | Priority: | lowest |
Severity: | trivial | Version: | |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
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.
3 years ago
#1
- Keywords has-patch added
#3
@
3 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 52813:
SergeyBiryukov commented on PR #2337:
3 years ago
#4
Thanks for the PR! Merged in https://core.trac.wordpress.org/changeset/52813.
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/55212