[wp-trac] [WordPress Trac] #12368: Allow setting limit in do_shortcode()

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 24 21:39:15 UTC 2010


#12368: Allow setting limit in do_shortcode()
-------------------------+--------------------------------------------------
 Reporter:  abelcheung   |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  Shortcodes   |     Version:            
 Severity:  normal       |    Keywords:  has-patch 
-------------------------+--------------------------------------------------
 Sometimes it is useful to limit the number of shortcode conversion
 occuring in do_shortcode(), such as preventing overuse of shortcode in
 untrusted content, or whatever reason. This patch adds a new int parameter
 to do_shortcode(), which is used as the $limit parameter in
 preg_replace_callback().

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


More information about the wp-trac mailing list