Skip to:
Content

BuddyPress.org

Changeset 9310


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

Bracket clean-up to bp-loader.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-loader.php

    r9308 r9310  
    2222
    2323// Exit if accessed directly
    24 if ( !defined( 'ABSPATH' ) ) exit;
     24defined( 'ABSPATH' ) || exit;
    2525
    2626/** Constants *****************************************************************/
     
    223223        // Place your custom code (actions/filters) in a file called
    224224        // '/plugins/bp-custom.php' and it will be loaded before anything else.
    225         if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
     225        if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) ) {
    226226            require( WP_PLUGIN_DIR . '/bp-custom.php' );
     227        }
    227228
    228229        // Path and URL
     
    283284        //
    284285        // @todo Make this better
    285         if ( !defined( 'BP_SEARCH_SLUG' ) )
     286        if ( ! defined( 'BP_SEARCH_SLUG' ) ) {
    286287            define( 'BP_SEARCH_SLUG', 'search' );
     288        }
    287289    }
    288290
     
    396398
    397399        // Define the BuddyPress version
    398         if ( !defined( 'BP_VERSION'    ) ) define( 'BP_VERSION',    $this->version   );
     400        if ( ! defined( 'BP_VERSION' ) ) {
     401            define( 'BP_VERSION', $this->version );
     402        }
    399403
    400404        // Define the database version
    401         if ( !defined( 'BP_DB_VERSION' ) ) define( 'BP_DB_VERSION', $this->db_version );
     405        if ( ! defined( 'BP_DB_VERSION' ) ) {
     406            define( 'BP_DB_VERSION', $this->db_version );
     407        }
    402408    }
    403409
     
    475481
    476482        // If BuddyPress is being deactivated, do not add any actions
    477         if ( bp_is_deactivation( $this->basename ) )
     483        if ( bp_is_deactivation( $this->basename ) ) {
    478484            return;
     485        }
    479486
    480487        // Array of BuddyPress core actions
     
    494501
    495502        // Add the actions
    496         foreach( $actions as $class_action )
     503        foreach( $actions as $class_action ) {
    497504            add_action( 'bp_' . $class_action, array( $this, $class_action ), 5 );
     505        }
    498506
    499507        // All BuddyPress actions are setup (includes bbp-core-hooks.php)
     
    587595
    588596        // Bail if something already has this under control
    589         if ( ! empty( $this->theme_compat->theme ) )
     597        if ( ! empty( $this->theme_compat->theme ) ) {
    590598            return;
     599        }
    591600
    592601        // Setup the theme package to use for compatibility
Note: See TracChangeset for help on using the changeset viewer.