Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2011 12:04:01 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Move activity screen index function to correct location

File:
1 edited

Legend:

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

    r3757 r3765  
    88 * business functions, then pass on the user to a template file.
    99 */
     10
     11/**
     12 * Activity index
     13 *
     14 * @global obj $bp
     15 */
     16function bp_activity_screen_index() {
     17    global $bp;
     18
     19    if ( bp_is_activity_component() && empty( $bp->current_action ) ) {
     20        $bp->is_directory = true;
     21
     22        do_action( 'bp_activity_screen_index' );
     23
     24        bp_core_load_template( apply_filters( 'bp_activity_screen_index', 'activity/index' ) );
     25    }
     26}
     27add_action( 'wp', 'bp_activity_screen_index', 2 );
    1028
    1129function bp_activity_screen_my_activity() {
Note: See TracChangeset for help on using the changeset viewer.