Skip to:
Content

BuddyPress.org

Changeset 1718 for trunk/bp-status.php


Ignore:
Timestamp:
08/27/2009 09:18:10 PM (16 years ago)
Author:
apeatling
Message:

Fixes #723

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-status.php

    r1687 r1718  
    55require ( BP_PLUGIN_DIR . '/bp-status/bp-status-templatetags.php' );
    66require ( BP_PLUGIN_DIR . '/bp-status/bp-status-filters.php' );
     7
     8function bp_status_setup_globals() {
     9    global $bp, $wpdb;
     10
     11    /* For internal identification */
     12    $bp->status->id = 'status';
     13    $bp->status->slug = BP_STATUS_SLUG;
     14
     15    /* Register this in the active components array */
     16    $bp->active_components[$bp->status->slug] = $bp->status->id;
     17}
     18add_action( 'plugins_loaded', 'bp_status_setup_globals', 5 );   
     19add_action( 'admin_menu', 'bp_status_setup_globals', 1 );
    720
    821function bp_status_record_activity( $user_id, $content, $primary_link ) {
Note: See TracChangeset for help on using the changeset viewer.