<div dir="ltr">There you go <a href="https://themes.trac.wordpress.org/ticket/20284">https://themes.trac.wordpress.org/ticket/20284</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 2:49 AM, Konstantin Kovshenin <span dir="ltr"><<a href="mailto:kovshenin@gmail.com" target="_blank">kovshenin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In that case new WP_Query() is just as "incorrect" as query_posts().<br>
Both are used for secondary loops, the former is just a bit more sane<br>
than the latter, but under the hood they're pretty much the exact same<br>
thing.<br>
<br>
If the developer needs to alter the main loop, they should be using<br>
the pre_get_posts action, not overwriting the query with something<br>
else. It would also help if you provided a link to the ticket.<br>
<div><div class="h5"><br>
On Tue, Sep 30, 2014 at 12:12 PM, priyanshu mittal<br>
<<a href="mailto:priyanshu.mittal@gmail.com">priyanshu.mittal@gmail.com</a>> wrote:<br>
> I am reviewing a theme.<br>
><br>
> In this theme developer used a slider and masonary layout from the index.php<br>
> file.<br>
><br>
> He used sticky posts to make up the slider:- for this the seperate wp_query<br>
> object is called and properly resetted via wp_reset_postdata function.<br>
><br>
> In the masonry layout of posts in order to use his own custom pagination<br>
> function, he used query_posts, to alter the core loop, I know this is not<br>
> the correct way to do it.<br>
><br>
> My point is should I ask him to create new wp_query object for this or<br>
> should I advice him to use pre_get_posts function.<br>
><br>
> Thanks<br>
><br>
</div></div>> _______________________________________________<br>
> theme-reviewers mailing list<br>
> <a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Konstantin<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</font></span></blockquote></div><br></div>