Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/05/2016 04:08:04 AM (10 years ago)
Author:
boonebgorges
Message:

Move bp-blogs classes to their own files.

See #6870.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/classes/class-bp-blogs-recent-posts-widget.php

    r10515 r10517  
    11<?php
    22/**
    3  * BuddyPress Blogs Widgets.
     3 * BuddyPress Blogs Recent Posts Widget.
    44 *
    55 * @package BuddyPress
     
    1010// Exit if accessed directly.
    1111defined( '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' );
    2412
    2513/**
Note: See TracChangeset for help on using the changeset viewer.