[wp-trac] [WordPress Trac] #27246: Add function to get the excerpt outside the loop
WordPress Trac
noreply at wordpress.org
Wed Oct 1 11:55:16 UTC 2014
#27246: Add function to get the excerpt outside the loop
-------------------------------+-----------------------------
Reporter: Atoon | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version: 3.8.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: template
-------------------------------+-----------------------------
Comment (by husobj):
I was trying to get to the bottom of what the old $fakeit was.
It looks like it used to expect a boolean true/false value as to wether to
'fake' the excerpt content but can't confirm that this was ever
implemented - see #4439. The parameter is there but not implemented as far
back as WP 1.5 (I haven't tried to research back further)
If it could be confirmed that it used to expect a boolean, could we then
check for a numeric value for that first parameter and then only handle
that as a Post ID if that's the case?
It would be nice to bring it inline with other functions like
get_the_title()
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27246#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list