[wp-trac] [WordPress Trac] #11048: Add new is_excerpt conditional tag
WordPress Trac
noreply at wordpress.org
Wed Sep 10 08:30:57 UTC 2014
#11048: Add new is_excerpt conditional tag
--------------------------------------------+-----------------------
Reporter: newkind | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: new is_excerpt conditional tag | Focuses:
--------------------------------------------+-----------------------
Changes (by jakesee):
* status: closed => reopened
* resolution: invalid =>
* component: General => Plugins
Comment:
Without referring to the wordpress definition of an excerpt, is a plugin
callback function (e.g. shortcode callback) can determine from which
context it is being called, then the callback function can do a better
customisation.
For example, when a "trimmed version" of a post is called, shortcode
callback can skip all translation and return empty string. This should
work in places such as the_content() and the_excerpt().
--
Ticket URL: <https://core.trac.wordpress.org/ticket/11048#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list