- Timestamp:
- 02/08/2016 04:14:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/classes/class-bp-blogs-recent-posts-widget.php
r10517 r10553 36 36 */ 37 37 public function widget( $args, $instance ) { 38 global $activities_template; 38 39 39 40 $title = ! empty( $instance['title'] ) … … 75 76 'object' => false, 76 77 'primary_id' => false 77 ); ?> 78 ); 79 80 // Back up global. 81 $old_activities_template = $activities_template; 82 83 ?> 78 84 79 85 <?php if ( bp_has_activities( $args ) ) : ?> … … 108 114 <?php endif; ?> 109 115 110 <?php echo $after_widget; ?> 111 <?php 116 <?php echo $after_widget; 117 118 // Restore the global. 119 $activities_template = $old_activities_template; 112 120 } 113 121
Note: See TracChangeset
for help on using the changeset viewer.