[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
Fri May 12 19:44:39 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:
--------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-testing => php8 needs-testing


Comment:

 Could not reproduce the warning with the query from comment:4 or
 comment:7.

 The warning comes from `WP_Query::rewind_posts()`,
                 var_dump( $this->post_count );
                 die();

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57491#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list