[buddypress-trac] [BuddyPress Trac] #5170: bp_has_members() in widgets stomps $members_template global
buddypress-trac
noreply at wordpress.org
Fri May 30 13:25:22 UTC 2014
#5170: bp_has_members() in widgets stomps $members_template global
-----------------------------+------------------------------
Reporter: johnjamesjacoby | Owner: johnjamesjacoby
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.1
Component: Members | Version: 1.0
Severity: major | Resolution:
Keywords: dev-feedback |
-----------------------------+------------------------------
Comment (by boonebgorges):
DerekFoulk - If you need to run multiple queries on a single page, I'd
suggest that you zero out the global yourself.
{{{
$GLOBALS['members_template'] = null;
}}}
or stash it somewhere if you think you'll need it later. Fixing this in BP
is going to require more architectural work than we can use now. It's
likely that jjj's patches will solve the immediate problem, but might have
unexpected side effects.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5170#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list