[wp-trac] [WordPress Trac] #27246: Add function to get the excerpt outside the loop
WordPress Trac
noreply at wordpress.org
Thu Jan 14 17:37:14 UTC 2016
#27246: Add function to get the excerpt outside the loop
---------------------------------------------+-----------------------
Reporter: Atoon | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.5
Component: Posts, Post Types | Version: 3.8.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses: template
---------------------------------------------+-----------------------
Changes (by swissspidy):
* keywords: has-patch has-unit-tests => has-patch has-unit-tests commit
Comment:
> I think it's safe to undeprecate it and treat it as a post ID if a
numeric value or a post object is passed.
[attachment:27246.2.diff] implements this and I think is safe to add. The
original param was deprecated a long time ago and I often ran into this
"bug" before.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27246#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list