Unnecessary wp_reset_query() call #138

Open
justintadlock opened this Issue Jan 11, 2017 · 0 comments

Projects

None yet

1 participant

@justintadlock
justintadlock commented Jan 11, 2017 edited

You don't need the call to wp_reset_query() here (it should only be used in conjuction with query_posts()). The wp_reset_postdata() call is correct.

From inc/class-shapely-related-posts.php (lines 123 and 213):

// reset post query
wp_reset_postdata();
wp_reset_query();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment