[wp-trac] [WordPress Trac] #12368: Allow setting limit in do_shortcode()
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 8 06:23:28 UTC 2010
#12368: Allow setting limit in do_shortcode()
-------------------------+--------------------------------------------------
Reporter: abelcheung | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Shortcodes | Version:
Severity: normal | Keywords: reporter-feedback
-------------------------+--------------------------------------------------
Comment(by abelcheung):
In my plugin's case, it converts shortcode enclosed content into images,
but the process is resource hungry and time consuming, so I want to limit
number of instances of shortcode parsed, and print others as vanilla text.
That's the primary reason of this patch.
Do you mean using a static counter to record number of shortcode instances
already parsed?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12368#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list