Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/03/2012 05:09:25 PM (14 years ago)
Author:
djpaul
Message:

Exit functions.php if accessed directly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r5751 r5876  
    2828 */
    2929
    30 if ( !function_exists( 'bp_is_active' ) )
     30// Exit if accessed directly
     31if ( ! defined( 'ABSPATH' ) ) exit;
     32
     33if ( ! function_exists( 'bp_is_active' ) )
    3134    return;
    3235
    3336// If BuddyPress is not activated, switch back to the default WP theme
    34 if ( !defined( 'BP_VERSION' ) )
     37if ( ! defined( 'BP_VERSION' ) )
    3538    switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
    3639
     
    4447    $content_width = 591;
    4548
    46 if ( !function_exists( 'bp_dtheme_setup' ) ) :
     49if ( ! function_exists( 'bp_dtheme_setup' ) ) :
    4750/**
    4851 * Sets up theme defaults and registers support for various WordPress and BuddyPress features.
Note: See TracChangeset for help on using the changeset viewer.