Skip to:
Content

BuddyPress.org

Changeset 8590


Ignore:
Timestamp:
07/10/2014 10:34:55 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Clean up bp-blogs-loader.php.

File:
1 edited

Legend:

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

    r8568 r8590  
    4646                $bp = buddypress();
    4747
    48                 if ( !defined( 'BP_BLOGS_SLUG' ) )
     48                if ( ! defined( 'BP_BLOGS_SLUG' ) ) {
    4949                        define ( 'BP_BLOGS_SLUG', $this->id );
     50                }
    5051
    5152                // Global tables for messaging component
     
    5960                );
    6061
    61                 // All globals for messaging component.
    62                 // Note that global_tables is included in this array.
     62                // All globals for blogs component.
    6363                $args = array(
    6464                        'slug'                  => BP_BLOGS_SLUG,
     
    8484         */
    8585        public function includes( $includes = array() ) {
     86
    8687                // Files to include
    8788                $includes = array(
     
    9697                );
    9798
    98                 if ( is_multisite() )
     99                if ( is_multisite() ) {
    99100                        $includes[] = 'widgets';
     101                }
    100102
    101103                // Include the files
     
    121123                 * activity stream.
    122124                 */
    123                 if ( !is_multisite() )
     125                if ( ! is_multisite() ) {
    124126                        return false;
     127                }
    125128
    126129                // Add 'Sites' to the main navigation
     
    173176                /**
    174177                 * Site/post/comment menus should not appear on single WordPress setups.
    175                  * Although comments and posts made by users will still show on their
    176                  * activity stream.
     178                 *
     179                 * Comments and posts made by users will still show in their activity.
    177180                 */
    178                 if ( !is_multisite() )
     181                if ( ! is_multisite() ) {
    179182                        return false;
     183                }
    180184
    181185                // Menus for logged in user
Note: See TracChangeset for help on using the changeset viewer.