[wp-trac] [WordPress Trac] #32790: Filter for do_shortcode_tag()
WordPress Trac
noreply at wordpress.org
Thu Sep 8 15:05:28 UTC 2016
#32790: Filter for do_shortcode_tag()
----------------------------------------+------------------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------------------
Changes (by flixos90):
* keywords: => has-patch needs-unit-tests
Comment:
[attachment:32790.diff] introduces the `do_shortcode_tag` filter to allow
filtering the shortcode output. This also allows us, in combination with
[changeset:38506], to cache expensive shortcodes.
I also removed a bit of repetitive code before to only handle what's
different between the two if-clauses (namely whether `$content` is passed
to the shortcode callback or not).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32790#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list