Skip to:
Content

BuddyPress.org

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

    r2656 r2678  
    571571}
    572572
    573 /**
    574  * messages_filter_template_paths()
    575  *
    576  * Add fallback for the bp-sn-parent theme template locations used in BuddyPress versions
    577  * older than 1.2.
    578  *
    579  * @package BuddyPress Core
    580  */
    581 function messages_filter_template_paths() {
    582         if ( 'bp-sn-parent' != basename( TEMPLATEPATH ) && !defined( 'BP_CLASSIC_TEMPLATE_STRUCTURE' ) )
    583                 return false;
    584 
    585         add_filter( 'messages_template_compose', create_function( '', 'return "messages/compose";' ) );
    586         add_filter( 'messages_template_sentbox', create_function( '', 'return "messages/sentbox";' ) );
    587         add_filter( 'messages_template_inbox', create_function( '', 'return "messages/index";' ) );
    588         add_filter( 'messages_template_notices', create_function( '', 'return "messages/notices";' ) );
    589         add_filter( 'messages_template_view_message', create_function( '', 'return "messages/view";' ) );
    590 }
    591 add_action( 'init', 'messages_filter_template_paths' );
    592 
    593573
    594574/********************************************************************************
Note: See TracChangeset for help on using the changeset viewer.