[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
Wed Jan 18 09:24:54 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 | Keywords:
Focuses: |
--------------------------+-----------------------------
Hello,
I use php version 8.2.0 and wordpress 6.1.1
I have custom query. Everything works well. But if the WP_Query does not
have any post I see this php error message:
{{{
Warning: Undefined array key 0 in /data/web/virtuals/291601/virtual/www
/wp-includes/class-wp-query.php on line 3663
}}}
Please, fix it in the next WordPress version.
Thank you,
David
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57491>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list