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

WordPress Trac noreply at wordpress.org
Wed Nov 14 09:39:36 UTC 2018


#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:  needs-patch dev-feedback  |     Focuses:
--------------------------------------+------------------------------
Changes (by mukesh27):

 * keywords:  needs-patch => needs-patch dev-feedback


Comment:

 @wujek_bogdan i have checked above issue and found that it's bug in core
 software. When any WP_Query use fields argument with ids or id=>parent
 option then system does not set it post variable for that query result and
 system show null value in result.

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


More information about the wp-trac mailing list