Skip to:
Content

BuddyPress.org

Changeset 2678 for trunk/bp-xprofile.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-xprofile.php

    r2668 r2678  
    908908add_action( 'bp_activity_screen_single_activity_permalink', 'xprofile_remove_screen_notifications' );
    909909
    910 /**
    911  * xprofile_filter_template_paths()
    912  *
    913  * Add fallback for the bp-sn-parent theme template locations used in BuddyPress versions
    914  * older than 1.2.
    915  *
    916  * @package BuddyPress Core
    917  */
    918 function xprofile_filter_template_paths() {
    919     if ( 'bp-sn-parent' != basename( TEMPLATEPATH ) && !defined( 'BP_CLASSIC_TEMPLATE_STRUCTURE' ) )
    920         return false;
    921 
    922     add_filter( 'xprofile_template_display_profile', create_function( '', 'return "profile/index";' ) );
    923     add_filter( 'xprofile_template_edit_profile', create_function( '', 'return "profile/edit";' ) );
    924     add_filter( 'xprofile_template_change_avatar', create_function( '', 'return "profile/change-avatar";' ) );
    925 }
    926 add_action( 'init', 'xprofile_filter_template_paths' );
    927910
    928911/**
Note: See TracChangeset for help on using the changeset viewer.