Changeset 6260 for trunk/bp-blogs/bp-blogs-widgets.php
- Timestamp:
- 08/18/2012 10:19:17 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-widgets.php
r5930 r6260 16 16 17 17 if ( bp_is_active( 'activity' ) && (int) $wpdb->blogid == bp_get_root_blog_id() ) 18 add_action( 'widgets_init', create_function('', 'return register_widget("BP_Blogs_Recent_Posts_Widget");') );18 add_action( 'widgets_init', create_function( '', 'return register_widget("BP_Blogs_Recent_Posts_Widget");' ) ); 19 19 } 20 20 add_action( 'bp_register_widgets', 'bp_blogs_register_widgets' ); … … 36 36 $instance['max_posts'] = 10; ?> 37 37 38 <?php / * Override some of the contextually set parameters for bp_has_activities() */?>38 <?php // Override some of the contextually set parameters for bp_has_activities() ?> 39 39 <?php if ( bp_has_activities( array( 'action' => 'new_blog_post', 'max' => $instance['max_posts'], 'per_page' => $instance['max_posts'], 'user_id' => 0, 'scope' => false, 'object' => false, 'primary_id' => false ) ) ) : ?> 40 40
Note: See TracChangeset
for help on using the changeset viewer.