[wp-trac] [WordPress Trac] #32071: Function to generate safe & trusted URLs

WordPress Trac noreply at wordpress.org
Wed Apr 22 21:05:20 UTC 2015


#32071: Function to generate safe & trusted URLs
-----------------------------+-----------------------------
 Reporter:  johnjamesjacoby  |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  normal           |   Keywords:  has-patch
  Focuses:                   |
-----------------------------+-----------------------------
 Recent developments around plugins and themes misusing `add_query_arg()`
 and `remove_query_arg()` got me to thinking about how WordPress has a
 responsibility to make generating safe and reliable URLs as easy as
 possible.

 I'm proposing we introduce a new helper function that all URLs in core
 would be switched over to use, to lead by example and completely eliminate
 any margin for errors when it comes to the order of operations of
 manipulating URLs and outputting them to the browser.

 Patch imminent.

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


More information about the wp-trac mailing list