/**
 * Are we currently replacing the_content?
 *
 * @since BuddyPress (1.8.0)
 *
 * @return bool True if the_content is currently in the process of being
 *         filtered and replaced.
 */
function bp_do_theme_compat()
{
    return (bool) (!bp_is_template_included() && in_the_loop() && bp_is_theme_compat_active());
}
Example #2
0
/**
 * Wrapper function for bp_is_theme_compat_active()
 *
 * Needed for backward compatibility with BP < 1.7
 *
 * @since 1.3
 * @return bool
 */
function bp_docs_is_theme_compat_active()
{
    $is_active = false;
    if (function_exists('bp_is_theme_compat_active')) {
        $is_active = bp_is_theme_compat_active();
    }
    return $is_active;
}