[wp-trac] [WordPress Trac] #42814: PHP 7.2 Warning: ...wp-includes/post-template.php on line 284
WordPress Trac
noreply at wordpress.org
Sat Jan 6 18:31:13 UTC 2018
#42814: PHP 7.2 Warning: ...wp-includes/post-template.php on line 284
---------------------------------------------+-----------------------------
Reporter: internetwerk | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting
Component: General | Review
Severity: normal | Version: 4.9.1
Keywords: needs-testing reporter-feedback | Resolution:
| Focuses:
---------------------------------------------+-----------------------------
Comment (by bobbingwide):
I've updated the Issue raised against Jetpack with my findings.
https://github.com/Automattic/jetpack/issues/8420
For me the problem occurs when viewing an Attachment that doesn't have a
caption ( i.e. excerpt ).
Theme Twenry Seventeen, Jetpack 5.7
My change to get_the_content() was simpler.
{{{
if ( is_array( $pages ) ) {
if ( $page > count( $pages ) ) // if the requested page
doesn't exist
$page = count( $pages ); // give them the highest
numbered page that DOES exist
} else {
$page = 0;
}
}}}
I didn't try fixing Jetpack.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42814#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list