Skip to:
Content

BuddyPress.org

Changeset 2678 for trunk/bp-forums.php


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

    r2661 r2678  
    521521add_filter( 'user_has_cap', 'bp_forums_filter_caps' );
    522522
    523 /**
    524  * bp_forums_filter_template_paths()
    525  *
    526  * Add fallback for the bp-sn-parent theme template locations used in BuddyPress versions
    527  * older than 1.2.
    528  *
    529  * @package BuddyPress Core
    530  */
    531 function bp_forums_filter_template_paths() {
    532     if ( 'bp-sn-parent' != basename( TEMPLATEPATH ) && !defined( 'BP_CLASSIC_TEMPLATE_STRUCTURE' ) )
    533         return false;
    534 
    535     add_filter( 'bp_forums_template_directory_forums_setup', create_function( '', 'return "directories/forums/index";' ) );
    536 }
    537 add_action( 'init', 'bp_forums_filter_template_paths' );
    538 
    539523
    540524/********************************************************************************
Note: See TracChangeset for help on using the changeset viewer.