Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57491, comment 8


Ignore:
Timestamp:
05/12/2023 07:50:33 PM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57491, comment 8

    initial v1  
    11The warning comes from `WP_Query::rewind_posts()`, called as part of `::have_posts()`.
    22
    3 If I'm reading the code correctly, it can be triggered if `$this->post_count` is greater than zero but `$this->posts` is empty, though it's not quite clear to me how to reproduce this scenario. The queries from comment:4 or comment:7 don't seem to trigger it in my testing.
     3If I'm reading the code correctly, it can be triggered if `$this->post_count` is greater than zero but `$this->posts` is empty, though it's not quite clear to me how to reproduce that scenario. The queries from comment:4 or comment:7 don't seem to trigger it in my testing.