[wp-trac] [WordPress Trac] #57491: Php 8.2.0 - error if the Wp Query does not have any post
WordPress Trac
noreply at wordpress.org
Mon May 15 23:37:33 UTC 2023
#57491: Php 8.2.0 - error if the Wp Query does not have any post
--------------------------------+------------------------------
Reporter: davidki | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 6.1.1
Severity: major | Resolution:
Keywords: php8 needs-testing | Focuses:
--------------------------------+------------------------------
Comment (by petitphp):
I couldn't replicate the notice either using TwentyTwentyOne with the code
from comment:7.
Checking other tickets on trac related to `rewind_posts`, I saw a similar
report in #41446. It seems a notice is displayed when the global variable
`$posts` is directly overridden with another query which yield no results.
But I don't know if it is the same issue here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57491#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list