Skip to:
Content

BuddyPress.org

Changeset 3765


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

Move activity screen index function to correct location

Location:
trunk/bp-activity
Files:
2 edited

Legend:

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

    r3757 r3765  
    99 * @subpackage Activity Core
    1010 */
    11 
    12 /**
    13  * @todo Figure out if this is still needed
    14  *
    15  * @global obj $bp
    16  */
    17 function bp_activity_directory_activity_setup() {
    18     global $bp;
    19 
    20     if ( bp_is_activity_component() && empty( $bp->current_action ) ) {
    21         $bp->is_directory = true;
    22 
    23         do_action( 'bp_activity_directory_activity_setup' );
    24 
    25         bp_core_load_template( apply_filters( 'bp_activity_directory_activity_setup', 'activity/index' ) );
    26     }
    27 }
    28 add_action( 'wp', 'bp_activity_directory_activity_setup', 2 );
    2911
    3012/**
  • 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.