[wp-trac] [WordPress Trac] #52524: Add extra context to the `xmlrpc_call` action
WordPress Trac
noreply at wordpress.org
Mon Feb 15 02:04:48 UTC 2021
#52524: Add extra context to the `xmlrpc_call` action
--------------------------+-----------------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The `xmlrpc_call` action currently passes the method name to the action,
but fails to pass the arguments presented. That can make the action hard
to use when the call passes specific content in the payload of the
request.
For example, when the `wp.getRevisions` XML-RPC call is made, it's
impossible to tell what post is being accessed via the API for dynamic
filtering without reaching into the internals of the global
`$wp_xmlrpc_server` object.
The attached PR simply adds the `$args` parameter to the action call along
with the RPC server for consistency sake.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52524>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list