[wp-trac] [WordPress Trac] #45343: $query->post is null when WP_Query `fields` parameter is present

WordPress Trac noreply at wordpress.org
Tue Jun 17 17:04:57 UTC 2025


#45343: $query->post is null when WP_Query `fields` parameter is present
----------------------------------------+------------------------------
 Reporter:  wujek_bogdan                |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Query                       |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  dev-feedback needs-testing  |     Focuses:
----------------------------------------+------------------------------

Comment (by callumbw95):

 Hi all,
 I know this is an older issue now but as its still occurring in the latest
 release and on trunk I thought I would throw my hat in to the ring to get
 this resolved. I have taken a look at the previous patch, and this didn't
 appear to work in the current version. Because of this I have updated the
 patch and tested this and all appears to be working now. Hopefully this
 can help unstick this ticket.

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


More information about the wp-trac mailing list