Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/24/2014 11:48:48 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Replace BP_PLUGIN_DIR and BP_PLUGIN_URL constant usages with plugin_dir and plugin_url BuddyPress variables, respectively. Also replaces $bp global touches with buddypress() calls within the above scopes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/deprecated/1.7.php

    r7213 r7756  
    5555
    5656function bp_forums_bbpress_install( $location = '' ) {
    57     global $wpdb, $bbdb, $bp;
     57    global $wpdb, $bbdb;
    5858
    5959    check_admin_referer( 'bp_forums_new_install_init' );
     
    6363    }
    6464
     65    $bp = buddypress();
     66
    6567    // Create the bb-config.php file
    6668    $initial_write = bp_forums_bbpress_write(
    67         BP_PLUGIN_DIR . '/bp-forums/bbpress/bb-config-sample.php',
     69        $bp->plugin_dir . '/bp-forums/bbpress/bb-config-sample.php',
    6870        $location,
    6971        array(
     
    9799    $file .= "\n" .   '$bb->custom_user_table = \'' . $wpdb->users . '\';';
    98100    $file .= "\n" .   '$bb->custom_user_meta_table = \'' . $wpdb->usermeta . '\';';
    99     $file .= "\n\n" . '$bb->uri = \'' . BP_PLUGIN_URL . '/bp-forums/bbpress/\';';
     101    $file .= "\n\n" . '$bb->uri = \'' . $bp->plugin_url . '/bp-forums/bbpress/\';';
    100102    $file .= "\n" .   '$bb->name = \'' . get_blog_option( bp_get_root_blog_id(), 'blogname' ) . ' ' . __( 'Forums', 'buddypress' ) . '\';';
    101103
Note: See TracChangeset for help on using the changeset viewer.