Skip to:
Content

bbPress.org

Changeset 4608


Ignore:
Timestamp:
12/20/2012 03:14:04 PM (14 years ago)
Author:
johnjamesjacoby
Message:

In bbp_template_include_theme_compat(), bail early if is_buddypress(). Fixes #2104.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/theme-compat.php

    r4600 r4608  
    454454function bbp_template_include_theme_compat( $template = '' ) {
    455455
     456        /**
     457         * If BuddyPress is activated at a network level, the action order is
     458         * reversed, which causes the template integration to fail. If we're looking
     459         * at a BuddyPress page here, bail to prevent the extra processing.
     460         *
     461         * This is a bit more brute-force than is probably necessary, but gets the
     462         * job done while we work towards something more elegant.
     463         */
     464        if ( function_exists( 'is_buddypress' ) && is_buddypress() )
     465                return $template;
     466
    456467        /** Users *************************************************************/
    457468
Note: See TracChangeset for help on using the changeset viewer.