[wp-testers] WP_Query rewrites $request.

Ryan Boren ryan at boren.nu
Wed Jan 11 11:06:58 GMT 2006


On Tue, 2006-01-10 at 01:48 +0900, Jamie Talbot wrote:
> $request is overwritten in WP_Query->get_posts() (Line 645 or
> thereabouts).  Because the $request is built for $wp_query first, any
> new WP_Query objects in a template will overwrite it.  Instead of
> changing $request for each new WP_Query, could the query string be
> assigned to a class member variable?  This way, each WP_Query would have
> it's own request string, which would remain consistent.
> 
> I haven't submitted a ticket for this yet, because I don't know the
> extent to which $request is used throughout the rest of the code (or if
> other plugins rely on it being written this way).  Is it a bug?  Or just
> the expected behaviour and an omission from the documentation?

http://trac.wordpress.org/changeset/3426

How's that?

Ryan



More information about the wp-testers mailing list