[wp-trac] [WordPress Trac] #21827: Use wp_parse_id_list() in gallery_shortcode()

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 6 23:14:46 UTC 2012


#21827: Use wp_parse_id_list() in gallery_shortcode()
----------------------------+-----------------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Media           |    Version:  3.0
 Severity:  normal          |   Keywords:  has-patch
----------------------------+-----------------------------
 In `gallery_shortcode()`, a regex is used to sanitize a list of IDs in
 `'include'` and `'exclude'` parameters.

 We have a special function for that: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.2/wp-
 includes/functions.php#L2345

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21827>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list