Skip to:
Content

BuddyPress.org

Changeset 2678 for trunk/bp-activity.php


Ignore:
Timestamp:
02/11/2010 03:48:07 PM (15 years ago)
Author:
apeatling
Message:

Moving blog and comment template loops to the backwards compatibility plugin since they are deprecated by the activity stream filters. Also moved classic template filters since the classic theme no longer exists in the core.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r2668 r2678  
    10641064}
    10651065
    1066 /**
    1067  * bp_activity_filter_template_paths()
    1068  *
    1069  * Add fallback for the bp-sn-parent theme template locations used in BuddyPress versions
    1070  * older than 1.2.
    1071  *
    1072  * @package BuddyPress Core
    1073  */
    1074 function bp_activity_filter_template_paths() {
    1075     if ( 'bp-sn-parent' != basename( TEMPLATEPATH ) && !defined( 'BP_CLASSIC_TEMPLATE_STRUCTURE' ) )
    1076         return false;
    1077 
    1078     add_filter( 'bp_activity_template_my_activity', create_function( '', 'return "activity/just-me";' ) );
    1079     add_filter( 'bp_activity_template_friends_activity', create_function( '', 'return "activity/my-friends";' ) );
    1080     add_filter( 'bp_activity_template_profile_activity_permalink', create_function( '', 'return "activity/single";' ) );
    1081 }
    1082 add_action( 'widgets_init', 'bp_activity_filter_template_paths' );
    1083 
    10841066function bp_activity_remove_data( $user_id ) {
    10851067    // Clear the user's activity from the sitewide stream and clear their activity tables
Note: See TracChangeset for help on using the changeset viewer.