[wp-trac] [WordPress Trac] #27246: Add function to get the excerpt outside the loop
WordPress Trac
noreply at wordpress.org
Sat Jan 16 12:25:54 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
---------------------------------------------+-------------------------
Comment (by swissspidy):
Replying to [comment:18 markoheijnen]:
> That's a good point. I also made myself guilty with copy/pasting the
code of `get_the_excerpt()`/`the_excerpt`. So it is a good thing to have.
I'm just thinking how the future would look like. Would be great to have a
roadmap for WP_Post and related classes.
For the record, I just found #12267 about this. It was recently closed as
maybelater, but if there's interest in it.. Why not?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27246#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list