Skip to:
Content

BuddyPress.org

Ticket #2789: 2789b.001.patch

File 2789b.001.patch, 1.5 KB (added by DJPaul, 14 years ago)
  • bp-core/admin/bp-core-upgrade.php

     
    99
    1010// Install site options on activation
    1111bp_core_activate_site_options( array( 'bp-disable-account-deletion' => 0, 'bp-disable-avatar-uploads' => 0, 'bp-disable-blogforum-comments' => 0,  'bp-disable-forum-directory' => 0,  'bp-disable-profile-sync' => 0 ) );
    12  
     12
    1313/**
    1414 * bp_core_activate_site_options()
    1515 *
     
    12901290        </style>
    12911291<?php
    12921292}
     1293
     1294function bp_is_active( $component ) {
     1295        return false;
     1296}
     1297
     1298function bp_page_title() {
     1299        wp_title();
     1300}
     1301
     1302function bp_site_name() {
     1303        echo apply_filters( 'bp_site_name', get_bloginfo( 'name', 'display' ) );
     1304}
     1305
     1306function bp_search_form_enabled() {
     1307        return false;
     1308}
     1309
     1310function bp_core_get_userlink( $user_id, $no_anchor = false, $just_link = false ) {
     1311        return '';
     1312}
     1313
     1314function bp_loggedin_user_domain() {
     1315        return '';
     1316}
     1317
     1318function bp_loggedin_user_avatar( $args = '' ) {
     1319}
     1320
     1321function bp_loggedin_user_id() {
     1322        $user = wp_get_current_user();
     1323        return $user->id;
     1324}
     1325
     1326function bp_get_root_domain() {
     1327        global $current_blog;
     1328
     1329        if ( defined( 'BP_ENABLE_MULTIBLOG' ) )
     1330                $domain = get_home_url( $current_blog->blog_id );
     1331        else
     1332                $domain = get_home_url( BP_ROOT_BLOG );
     1333
     1334        return apply_filters( 'bp_get_root_domain', $domain );
     1335}
     1336
     1337function bp_current_component() {
     1338        return 'members';
     1339}
    12931340?>
     1341 No newline at end of file