Changeset 2678 for trunk/bp-forums.php
- Timestamp:
- 02/11/2010 03:48:07 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r2661 r2678 521 521 add_filter( 'user_has_cap', 'bp_forums_filter_caps' ); 522 522 523 /**524 * bp_forums_filter_template_paths()525 *526 * Add fallback for the bp-sn-parent theme template locations used in BuddyPress versions527 * older than 1.2.528 *529 * @package BuddyPress Core530 */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 539 523 540 524 /********************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.