Support » Plugin: BadgeOS Community Add-on » Uprotected loop

  • In includes/bp-members.php, there is an unprotected loop that is creating problems on our site. It appears that everything within the loop explicitly uses the post object or post id. I was able to fix the problem by changing $query->the_post() to $query->next_post() which does the same thing without messing up the surrounding state.

    Line 188:
    while ( $query->have_posts() ) : $query->the_post();
    while ( $query->have_posts() ) : $query->next_post();

    Please make this change or make sure that you aren’t blowing up the state outside of the function.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.