[wp-trac] [WordPress Trac] #35487: Update has_excerpt()
WordPress Trac
noreply at wordpress.org
Sat Jan 16 10:49:56 UTC 2016
#35487: Update has_excerpt()
-------------------------------+------------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Comment (by swissspidy):
That still changes the semantics of the function. `get_the_excerpt()` is
almost never empty because `wp_trim_excerpt()` is hooked to the
`get_the_excerpt` filter.
`has_excerpt()` checks if there's a custom excerpt, not if there's some
generated excerpt.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35487#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list