Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/11/2020 01:33:08 PM (2 months ago)
Author:
imath
Message:

BP Blogs: improve Site Icons / Blavatar synchronization

Make sure BuddyPress tries to synchronize Sites Icons / Blavatars even when it's not network activated.

Add a new BP Repair tool to repair this synchronization. This can be needed when a different site of the network has its site icon updated after the BuddyPress Sites directory already listed this site previously.

Props vapvarun

Fixes #8384

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/blogs/template.php

    r12772 r12779  
    432432
    433433        add_filter( 'get_site_icon_url', array( $this, 'filter_blog_avatar' ) );
     434        add_filter( 'bp_is_network_activated', '__return_true' );
    434435
    435436        $avatar = bp_get_blog_avatar( array(
     
    442443        ) );
    443444
     445        remove_filter( 'bp_is_network_activated', '__return_true' );
    444446        remove_filter( 'get_site_icon_url', array( $this, 'filter_blog_avatar' ) );
    445447        $blogs_template = $reset_blogs_template;
Note: See TracChangeset for help on using the changeset viewer.