Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/04/2011 05:20:57 PM (12 years ago)
Author:
djpaul
Message:

Switch the "filter by" drop down on the Activity admin screen to get its values from the registered activity list. Adds missing core activity types to that list. See #3660.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-functions.php

    r5410 r5437  
    754754 * Register the activity stream actions for updates
    755755 *
    756  * @since 1.2.0
    757  *
    758  * @global object $bp BuddyPress global settings
    759  * @uses bp_activity_set_action()
    760  * @uses do_action() To call the 'updates_register_activity_actions' hook
    761  */
    762 function updates_register_activity_actions() {
    763     global $bp;
    764 
    765     bp_activity_set_action( $bp->activity->id, 'activity_update', __( 'Posted an update', 'buddypress' ) );
    766 
     756 * @global object $bp BuddyPress global settings
     757 * @since 1.6
     758 */
     759function bp_activity_register_activity_actions() {
     760    global $bp;
     761
     762    bp_activity_set_action( $bp->activity->id, 'activity_update', __( 'Posted a status update', 'buddypress' ) );
     763    bp_activity_set_action( $bp->activity->id, 'activity_comment', __( 'Replied to a status update', 'buddypress' ) );
     764
     765    do_action( 'bp_activity_register_activity_actions' );
     766
     767    // Backpat. Don't use this.
    767768    do_action( 'updates_register_activity_actions' );
    768769}
    769 add_action( 'bp_register_activity_actions', 'updates_register_activity_actions' );
     770add_action( 'bp_register_activity_actions', 'bp_activity_register_activity_actions' );
    770771
    771772/******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.