[wp-trac] [WordPress Trac] #47465: current_action function - return types
WordPress Trac
noreply at wordpress.org
Wed Jun 5 16:33:14 UTC 2019
#47465: current_action function - return types
-------------------------------------------+------------------------------
Reporter: madeinua | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: minor | Resolution:
Keywords: reporter-feedback needs-patch | Focuses:
-------------------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: needs-patch => reporter-feedback needs-patch
Comment:
Hi @madeinua, welcome to WordPress Trac! Thanks for the ticket.
As noted in the
[https://developer.wordpress.org/reference/classes/wp_list_table/current_action/
documentation], `WP_List_Table::current_action()` returns the action
selected from the Bulk Actions dropdown.
I haven't found any instances in core where `$_REQUEST['action']` is an
array. Do you have any examples that can be reproduced on a clean install,
other than by directly editing the URL?
If some plugin uses `$_REQUEST['action']` as an array for its own
purposes, that sounds like a plugin issue, it should prefix the variable
accordingly, e.g. `my_plugin_action`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47465#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list