[wp-trac] [WordPress Trac] #57885: Docs: Add XSS warning to docs for remove_query_arg

WordPress Trac noreply at wordpress.org
Wed Mar 8 13:49:48 UTC 2023


#57885: Docs: Add XSS warning to docs for remove_query_arg
-------------------------+-----------------------------
 Reporter:  roytanck     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:  docs         |
-------------------------+-----------------------------
 On developer.wordpress.org, the page for `add_query_arg` contains a
 warning that the return value of the function is not escaped, and as such
 is not safe to use directly.

 The same applies to `remove_query_arg`, but not such warning is present
 there.

 I propose adding the same warning to the docs for `remove_query_arg`. I'll
 attach a patch to that effect to this ticket.

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


More information about the wp-trac mailing list