src/bp-core/bp-core-avatars.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/bp-core/bp-core-avatars.php b/src/bp-core/bp-core-avatars.php
index 5eb8823e6..fbb1a027e 100644
a
|
b
|
add_action( 'bp_setup_globals', 'bp_core_set_avatar_globals' ); |
192 | 192 | function bp_core_fetch_avatar( $args = '' ) { |
193 | 193 | $bp = buddypress(); |
194 | 194 | |
| 195 | // If $bp->avatar doesn't exist yet, bail. |
| 196 | if ( ! $bp->avatar ) { |
| 197 | return; |
| 198 | } |
| 199 | |
195 | 200 | // If avatars are disabled for the root site, obey that request and bail. |
196 | 201 | if ( ! $bp->avatar->show_avatars ) { |
197 | 202 | return; |