- Timestamp:
- 02/05/2016 04:08:04 AM (10 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/classes/class-bp-blogs-recent-posts-widget.php
r10515 r10517 1 1 <?php 2 2 /** 3 * BuddyPress Blogs Widgets.3 * BuddyPress Blogs Recent Posts Widget. 4 4 * 5 5 * @package BuddyPress … … 10 10 // Exit if accessed directly. 11 11 defined( 'ABSPATH' ) || exit; 12 13 /**14 * Register the widgets for the Blogs component.15 */16 function bp_blogs_register_widgets() {17 global $wpdb;18 19 if ( bp_is_active( 'activity' ) && bp_is_root_blog( $wpdb->blogid ) ) {20 add_action( 'widgets_init', create_function( '', 'return register_widget("BP_Blogs_Recent_Posts_Widget");' ) );21 }22 }23 add_action( 'bp_register_widgets', 'bp_blogs_register_widgets' );24 12 25 13 /**
Note: See TracChangeset
for help on using the changeset viewer.