[wp-trac] [WordPress Trac] #63727: A new function to sanitize an array

WordPress Trac noreply at wordpress.org
Sun Jul 20 08:52:28 UTC 2025


#63727: A new function to sanitize an array
-------------------------+-----------------------------
 Reporter:  davidperez   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 In the Plugins Team, when we review plugins, there is a custom function
 that many authors use in their development called recursively_sanitize. It
 iterates through each value, detects the data type, and executes the
 sanitization function that best fits the data.

 If we could have such a function officially, it would cover all
 sanitization needs for developers. It would also reduce our review
 workload, as we wouldn’t need to raise issues related to sanitization,
 since the function would rely on core sanitization methods.

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


More information about the wp-trac mailing list