Skip to:
Content

BuddyPress.org

Changeset 2274 for trunk/bp-blogs.php


Ignore:
Timestamp:
01/06/2010 09:24:41 PM (16 years ago)
Author:
apeatling
Message:

Change multiblog naming convention to multisite to avoid future confusion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs.php

    r2252 r2274  
    7575    global $wpdb, $bp, $userdata;
    7676
    77     if ( is_site_admin() && bp_core_is_multiblog_install() ) {
     77    if ( is_site_admin() && bp_core_is_multisite() ) {
    7878        /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
    7979        if ( get_site_option('bp-blogs-db-version') < BP_BLOGS_DB_VERSION )
     
    124124    /* Blog/post/comment menus should not appear on single WordPress setups. Although comments
    125125       and posts made by users will still show on their activity stream .*/
    126     if ( !bp_core_is_multiblog_install() )
     126    if ( !bp_core_is_multisite() )
    127127        return false;
    128128
     
    158158    global $bp;
    159159
    160     if ( bp_core_is_multiblog_install() && $bp->current_component == $bp->blogs->slug && empty( $bp->current_action ) ) {
     160    if ( bp_core_is_multisite() && $bp->current_component == $bp->blogs->slug && empty( $bp->current_action ) ) {
    161161        $bp->is_directory = true;
    162162
     
    179179    global $bp;
    180180
    181     if ( !bp_core_is_multiblog_install() )
     181    if ( !bp_core_is_multisite() )
    182182        return false;
    183183
     
    199199    global $bp;
    200200
    201     if ( !bp_core_is_multiblog_install() || $bp->current_component != $bp->blogs->slug || 'create' != $bp->current_action )
     201    if ( !bp_core_is_multisite() || $bp->current_component != $bp->blogs->slug || 'create' != $bp->current_action )
    202202        return false;
    203203
     
    362362
    363363            /* If we're on a multiblog install, record this post */
    364             if ( bp_core_is_multiblog_install() ) {
     364            if ( bp_core_is_multisite() ) {
    365365                $recorded_post = new BP_Blogs_Post;
    366366                $recorded_post->user_id = $user_id;
     
    374374            }
    375375
    376             if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multiblog_install() ) {
     376            if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multisite() ) {
    377377                /* Record this in activity streams */
    378378                $post_permalink = bp_post_get_permalink( $post, $blog_id );
     
    411411        }
    412412
    413         if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multiblog_install() ) {
     413        if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multisite() ) {
    414414            /* Now re-record the post in the activity streams */
    415415            $post_permalink = bp_post_get_permalink( $post, $blog_id );
     
    455455
    456456    /* If we're on a multiblog install, record this post */
    457     if ( bp_core_is_multiblog_install() ) {
     457    if ( bp_core_is_multisite() ) {
    458458        $recorded_comment = new BP_Blogs_Comment;
    459459        $recorded_comment->user_id = $user_id;
     
    468468    }
    469469
    470     if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multiblog_install() ) {
     470    if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multisite() ) {
    471471        /* Record in activity streams */
    472472        $comment_link = bp_post_get_permalink( $comment->post, $wpdb->blogid ) . '#comment-' . $comment_id;
     
    502502    bp_blogs_delete_activity( array( 'item_id' => $comment_id, 'secondary_item_id' => $recorded_comment->blog_id, 'component_name' => $bp->blogs->slug, 'component_action' => 'new_blog_comment' ) );
    503503
    504     if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multiblog_install() ) {
     504    if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multisite() ) {
    505505        /* Record in activity streams */
    506506        $comment_link = bp_post_get_permalink( $comment->post, $recorded_comment->blog_id );
Note: See TracChangeset for help on using the changeset viewer.