[wp-trac] [WordPress Trac] #22300: enhance urlencode_deep()

WordPress Trac noreply at wordpress.org
Sat Oct 17 23:25:23 UTC 2015


#22300: enhance urlencode_deep()
---------------------------------------------+--------------------------
 Reporter:  wpmuguru                         |       Owner:  johnbillion
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  4.4
Component:  Formatting                       |     Version:  3.4
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by johnbillion):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35252"]:
 {{{
 #!CommitTicketReference repository="" revision="35252"
 Introduce `map_deep()`, a utility function that recursively maps a
 callable function to every item in an array or object. Works like
 `array_walk_recursive()` but works with objects too.

 Updates `rawurlencode_deep()`, `urlencode_deep()`, and
 `stripslashes_deep()` to use `map_deep()`. Introduces `urldecode_deep()`
 for completeness.

 Props wpmuguru, nbachiyski, boonebgorges, MikeHansenMe, chriscct7,
 realloc, johnbillion
 Fixes #22300
 }}}

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


More information about the wp-trac mailing list