Skip to:
Content

BuddyPress.org

Ticket #8414: 8414.1.patch

File 8414.1.patch, 1.2 KB (added by slaFFik, 4 years ago)
  • src/bp-core/admin/bp-core-admin-tools.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/bp-core/admin/bp-core-admin-tools.php b/src/bp-core/admin/bp-core-admin-tools.php
    a b  
    144144                        'bp_admin_repair_blog_records',
    145145                );
    146146
    147                 if ( bp_is_active( 'blogs', 'site-icon' ) ) {
     147                if ( is_multisite() && bp_is_active( 'blogs', 'site-icon' ) ) {
    148148                        $repair_list[91] = array(
    149149                                'bp-blog-site-icons',
    150150                                __( 'Repair site tracking site icons/blog avatars synchronization.', 'buddypress' ),
     
    332332        /* translators: %s: the result of the action performed by the repair tool */
    333333        $statement = __( 'Repairing site icons/blog avatars synchronization&hellip; %s', 'buddypress' );
    334334
     335        if ( ! is_multisite() ) {
     336                return array( 0, sprintf( $statement, __( 'Failed!', 'buddypress' ) ) );
     337        }
     338
    335339        // Run function if blogs component is active.
    336340        if ( bp_is_active( 'blogs', 'site-icon' ) ) {
    337341                $blog_ids = get_sites(