[wp-trac] [WordPress Trac] #27246: Add function to get the excerpt outside the loop
WordPress Trac
noreply at wordpress.org
Fri Jan 15 14:47:02 UTC 2016
#27246: Add function to get the excerpt outside the loop
---------------------------------------------+-------------------------
Reporter: Atoon | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.5
Component: Posts, Post Types | Version: 3.8.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: template
---------------------------------------------+-------------------------
Changes (by swissspidy):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"36319"]:
{{{
#!CommitTicketReference repository="" revision="36319"
Posts: Add a `$post` parameter to `get_the_excerpt()`.
This allows getting the excerpt for a specific post, similar to how most
other template tags work.
A deprecation notice is thrown if a boolean value is passed, which is
deprecated since 2.3 and has not been used for a long time.
Adds unit tests.
Fixes #27246.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27246#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list