[wp-trac] [WordPress Trac] #41379: Documentation needs improvement in do_action parameters

WordPress Trac noreply at wordpress.org
Thu Jul 20 11:36:06 UTC 2017


#41379: Documentation needs improvement in do_action parameters
--------------------------+-------------------
 Reporter:  ronakganatra  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.9
Component:  HTTP API      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  docs
--------------------------+-------------------
Changes (by SergeyBiryukov):

 * milestone:  Awaiting Review => 4.9


Comment:

 Hi @ronakganatra, welcome to WordPress Trac! Thanks for the patch.

 The `$r` parameter is already documented as `$args` here.

 That said, other filters (`http_request_args`, `pre_http_request`,
 `http_response`) have it documented as `$r`, so we could probably change
 it to `$r` in `http_api_debug` as well for consistency.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41379#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list