Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/31/2016 07:05:12 AM (8 years ago)
Author:
r-a-y
Message:

Embeds: Bail out of theme compatibility if on an embed page.

Embeds will use a special template. However, theme compatibility takes
precedence, so we must bail from theme compatibility if on an embed page.

See #6772.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-theme-compatibility.php

    r10825 r10836  
    671671 */
    672672function bp_template_include_theme_compat( $template = '' ) {
     673    // If embed template, bail.
     674    if ( true === function_exists( 'is_embed' ) && is_embed() ) {
     675        return $template;
     676    }
    673677
    674678    // If the current theme doesn't need theme compat, bail at this point.
Note: See TracChangeset for help on using the changeset viewer.