[wp-trac] [WordPress Trac] #19938: Setting fields as ids or id=>parent does not setup post/count properties
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 31 21:06:13 UTC 2012
#19938: Setting fields as ids or id=>parent does not setup post/count properties
--------------------------+----------------------
Reporter: ejdanderson | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 3.0
Severity: normal | Resolution: wontfix
Keywords: |
--------------------------+----------------------
Changes (by scribu):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
It is intentional, to prevent backwards compatibility woes.
For example, calling 'the_posts' filter would probably break a lot of
plugins which expect objects, not integers.
Also, instead of {{{$query->have_posts()}}}, just use {{{!empty(
$query->posts )}}}.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19938#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list