[buddypress-trac] [BuddyPress Trac] #5170: bp_has_members() in widgets stomps $members_template global

buddypress-trac noreply at wordpress.org
Thu Jan 8 22:35:22 UTC 2015

#5170: bp_has_members() in widgets stomps $members_template global
 Reporter:  johnjamesjacoby  |       Owner:  johnjamesjacoby
     Type:  defect (bug)     |      Status:  new
 Priority:  high             |   Milestone:  Future Release
Component:  Members          |     Version:  1.0
 Severity:  major            |  Resolution:
 Keywords:  dev-feedback     |

Comment (by johnjamesjacoby):

 Replying to [comment:7 boonebgorges]:
 > {{{
 > $GLOBALS['members_template'] = null;
 > }}}

 Is there value is doing this after the widget code is put out? I would
 advocate that it's currently unexpected behavior to have the
 `$members_template` global populated on any page other than the members
 directory just because there's a widget in a sidebar somewhere.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5170#comment:11>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list