[wp-trac] [WordPress Trac] #33912: Document the various optional parameter permutations of add_query_arg()

WordPress Trac noreply at wordpress.org
Thu Sep 17 09:35:14 UTC 2015


#33912: Document the various optional parameter permutations of add_query_arg()
--------------------------+-----------------------------
 Reporter:  DrewAPicture  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 As we did in #32694 for `current_user_can()`, we should also attempt to
 document the various optional parameter permutations possible with
 `add_query_arg()`.

 `add_query_arg()`, however, is a tougher nut to crack because unlike
 `current_user_can()` and some others, it has no default signature, just an
 interesting mix of possible uses.

 I would also like to look at improving the naming of the parameters for
 the existing documentation. `$param1`, `$param2`, and `$param3` is pretty
 terrible.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33912>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list