[wp-trac] [WordPress Trac] #42814: PHP 7.2 Warning: ...wp-includes/post-template.php on line 284
WordPress Trac
noreply at wordpress.org
Fri Jan 12 06:51:58 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 Review
Component: Formatting | Version: 4.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by dd32):
Yep [attachment:42814.diff] will also avoid the warning, as it prevents
calling `get_the_content( '' )` which is the actual underlying function
which requires to be in the loop
However, it still has the same issue - It avoids it by simply using the
full `post_content` directly rather than the processed content which
respects `<!--nextpage-->` and `<!--more-->` tags.
While you're right, that using the passed `$post` context helps and avoids
this code branch in Jetpack, it doesn't fix it overall I don't think
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42814#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list