Skip to:
Content

BuddyPress.org

Changeset 9390


Ignore:
Timestamp:
01/21/2015 07:36:21 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Add brackets and whitespace in bp-core-theme-compatibility.php.

File:
1 edited

Legend:

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

    r9351 r9390  
    310310    $bp = buddypress();
    311311
    312     if ( empty( $bp->theme_compat->active ) )
     312    if ( empty( $bp->theme_compat->active ) ) {
    313313        return false;
     314    }
    314315
    315316    return $bp->theme_compat->active;
     
    393394    $bp = buddypress();
    394395
    395     if ( empty( $bp->theme_compat->original_template ) )
     396    if ( empty( $bp->theme_compat->original_template ) ) {
    396397        return false;
     398    }
    397399
    398400    return (bool) ( $bp->theme_compat->original_template == $template );
     
    603605
    604606    // Bail if the template already matches a BuddyPress template
    605     if ( !empty( buddypress()->theme_compat->found_template ) )
     607    if ( ! empty( buddypress()->theme_compat->found_template ) ) {
    606608        return $template;
     609    }
    607610
    608611    /**
     
    652655
    653656    // Bail if not the main loop where theme compat is happening
    654     if ( ! bp_do_theme_compat() )
     657    if ( ! bp_do_theme_compat() ) {
    655658        return $content;
     659    }
    656660
    657661    // Set theme compat to false early, to avoid recursion from nested calls to
     
    663667
    664668    // Juggle the content around and try to prevent unsightly comments
    665     if ( !empty( $new_content ) && ( $new_content !== $content ) ) {
     669    if ( ! empty( $new_content ) && ( $new_content !== $content ) ) {
    666670
    667671        // Set the content to be the new content
     
    719723
    720724        // Filters exist in this priority
    721         if ( !empty( $priority ) && isset( $wp_filter[$tag][$priority] ) ) {
     725        if ( ! empty( $priority ) && isset( $wp_filter[$tag][$priority] ) ) {
    722726
    723727            // Store filters in a backup
     
    775779
    776780        // Filters exist in this priority
    777         if ( !empty( $priority ) && isset( $bp->filters->wp_filter[$tag][$priority] ) ) {
     781        if ( ! empty( $priority ) && isset( $bp->filters->wp_filter[$tag][$priority] ) ) {
    778782
    779783            // Store filters in a backup
Note: See TracChangeset for help on using the changeset viewer.