WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17923, comment 22


Ignore:
Timestamp:
02/14/2014 04:26:53 AM (7 years ago)
Author:
Viper007Bond
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17923, comment 22

    initial v1  
    1 I keep running into this issue, especially when trying to harden security. You have to be really careful with this function if you don't want to create bad stuff.
     1I keep running into this issue, especially when trying to improve code security. You have to be really careful with this function if you don't want to create bad stuff.
    22
    33Maybe a better solution is to just introduce a new function, such as `add_encoded_query_arg()` that encodes and then calls `add_query_arg()`. That way we don't have to worry about passing yet another argument, especially when we would otherwise only pass 2 arguments. This also has the advantage of being able to deprecate `add_query_arg()` down the road if we so wish.