[wp-trac] [WordPress Trac] #24944: Include a new `locate_template_override` filter to let plugins duck-punch how templates are included.
WordPress Trac
noreply at wordpress.org
Sat Aug 3 18:26:27 UTC 2013
#24944: Include a new `locate_template_override` filter to let plugins duck-punch
how templates are included.
-----------------------------+-----------------------------
Reporter: georgestephanis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: trunk
Severity: normal | Keywords: has-patch
-----------------------------+-----------------------------
Patch attached.
Basically, the win from this patch is that plugins will be able to swap
out how the results of get_template_part() are fetched. If a plugin wants
to cache the results of specific template parts, for example, `loop.php`
or `content-reviews.php` -- it can cache those, without forcibly caching
`content-post.php` or the like.
This should enable much more robust ways of targeted caching.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24944>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list