[wp-trac] [WordPress Trac] #36934: Use of get_the_excerpt($post) is broken if post has no excerpt and you are inside a loop
WordPress Trac
noreply at wordpress.org
Thu Feb 23 13:20:13 UTC 2017
#36934: Use of get_the_excerpt($post) is broken if post has no excerpt and you are
inside a loop
-------------------------------------------------+-------------------------
Reporter: magicroundabout | Owner: swissspidy
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future
Component: Formatting | Release
Severity: normal | Version: 4.5
Keywords: has-patch needs-testing has-unit- | Resolution:
tests dev-feedback | Focuses: template
-------------------------------------------------+-------------------------
Comment (by swissspidy):
[attachment:36934.3.diff] is a refreshed patch against trunk that applies
cleanly and also makes all tests pass.
The main thing I changed was similar to the change in [30085]:
{{{
if ( ! $page || $post->ID !== get_queried_object_id() ) {
$page = 1;
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36934#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list