Skip to:
Content

BuddyPress.org

Ticket #8534: 8534.patch

File 8534.patch, 981 bytes (added by imath, 3 years ago)
  • src/bp-blogs/classes/class-bp-blogs-component.php

    diff --git src/bp-blogs/classes/class-bp-blogs-component.php src/bp-blogs/classes/class-bp-blogs-component.php
    index fb963935b..854660dda 100644
    class BP_Blogs_Component extends BP_Component { 
    137137
    138138                if ( bp_is_active( 'activity' ) ) {
    139139                        $includes[] = 'activity';
    140                 }
    141140
    142                 if ( is_multisite() ) {
    143                         $includes[] = 'widgets';
    144                         $includes[] = 'blocks';
     141                        if ( is_multisite() ) {
     142                                $includes[] = 'widgets';
     143                                $includes[] = 'blocks';
     144                        }
    145145                }
    146146
    147147                // Include the files.
    class BP_Blogs_Component extends BP_Component { 
    397397        public function blocks_init( $blocks = array() ) {
    398398                $blocks = array();
    399399
    400                 if ( is_multisite() ) {
     400                if ( is_multisite() && bp_is_active( 'activity' ) ) {
    401401                        $blocks['bp/recent-posts'] = array(
    402402                                'name'               => 'bp/recent-posts',
    403403                                'editor_script'      => 'bp-recent-posts-block',