diff --git src/bp-friends/bp-friends-widgets.php src/bp-friends/bp-friends-widgets.php
index 450bb23..6625983 100644
|
|
class BP_Core_Friends_Widget extends WP_Widget { |
59 | 59 | * @param array $instance The widget settings, as saved by the user. |
60 | 60 | */ |
61 | 61 | function widget( $args, $instance ) { |
| 62 | global $members_template; |
| 63 | $reset_members_template = $members_template; |
| 64 | |
62 | 65 | extract( $args ); |
63 | 66 | |
64 | 67 | if ( ! bp_displayed_user_id() ) { |
… |
… |
class BP_Core_Friends_Widget extends WP_Widget { |
146 | 149 | |
147 | 150 | <?php echo $after_widget; ?> |
148 | 151 | <?php |
| 152 | // Reset the members template global |
| 153 | $members_template = $reset_members_template; |
149 | 154 | } |
150 | 155 | |
151 | 156 | /** |
diff --git src/bp-members/bp-members-widgets.php src/bp-members/bp-members-widgets.php
index c36e710..2e9eab9 100644
|
|
class BP_Core_Members_Widget extends WP_Widget { |
53 | 53 | * @param array $instance Widget settings, as saved by the user. |
54 | 54 | */ |
55 | 55 | function widget( $args, $instance ) { |
| 56 | global $members_template; |
| 57 | $reset_members_template = $members_template; |
56 | 58 | |
57 | 59 | extract( $args ); |
58 | 60 | |
… |
… |
class BP_Core_Members_Widget extends WP_Widget { |
131 | 133 | |
132 | 134 | <?php echo $after_widget; ?> |
133 | 135 | <?php |
| 136 | // Reset the members template global |
| 137 | $members_template = $reset_members_template; |
134 | 138 | } |
135 | 139 | |
136 | 140 | /** |
… |
… |
class BP_Core_Whos_Online_Widget extends WP_Widget { |
218 | 222 | * @param array $instance Widget settings, as saved by the user. |
219 | 223 | */ |
220 | 224 | function widget($args, $instance) { |
| 225 | global $members_template; |
| 226 | $reset_members_template = $members_template; |
221 | 227 | |
222 | 228 | extract( $args ); |
223 | 229 | |
… |
… |
class BP_Core_Whos_Online_Widget extends WP_Widget { |
257 | 263 | |
258 | 264 | <?php echo $after_widget; ?> |
259 | 265 | <?php |
| 266 | // Reset the members template global |
| 267 | $members_template = $reset_members_template; |
260 | 268 | } |
261 | 269 | |
262 | 270 | /** |
… |
… |
class BP_Core_Recently_Active_Widget extends WP_Widget { |
324 | 332 | * @param array $instance Widget settings, as saved by the user. |
325 | 333 | */ |
326 | 334 | function widget( $args, $instance ) { |
| 335 | global $members_template; |
| 336 | $reset_members_template = $members_template; |
327 | 337 | |
328 | 338 | extract( $args ); |
329 | 339 | |
… |
… |
class BP_Core_Recently_Active_Widget extends WP_Widget { |
363 | 373 | |
364 | 374 | <?php echo $after_widget; ?> |
365 | 375 | <?php |
| 376 | // Reset the members template global |
| 377 | $members_template = $reset_members_template; |
366 | 378 | } |
367 | 379 | |
368 | 380 | /** |