Skip to:
Content

BuddyPress.org

Changeset 2678 for trunk/bp-friends.php


Ignore:
Timestamp:
02/11/2010 03:48:07 PM (17 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-friends.php

    r2656 r2678  
    594594}
    595595
    596 /**
    597  * friends_filter_template_paths()
    598  *
    599  * Add fallback for the bp-sn-parent theme template locations used in BuddyPress versions
    600  * older than 1.2.
    601  *
    602  * @package BuddyPress Core
    603  */
    604 function friends_filter_template_paths() {
    605         if ( 'bp-sn-parent' != basename( TEMPLATEPATH ) && !defined( 'BP_CLASSIC_TEMPLATE_STRUCTURE' ) )
    606                 return false;
    607 
    608         add_filter( 'friends_template_my_friends', create_function( '', 'return "friends/index";' ) );
    609         add_filter( 'friends_template_requests', create_function( '', 'return "friends/requests";' ) );
    610 }
    611 add_action( 'init', 'friends_filter_template_paths' );
    612 
    613596function friends_remove_data( $user_id ) {
    614597        BP_Friends_Friendship::delete_all_for_user($user_id);
Note: See TracChangeset for help on using the changeset viewer.