Changeset 6881
- Timestamp:
- 04/02/2013 05:34:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r6812 r6881 72 72 $bp->avatar->url = bp_core_avatar_url(); 73 73 74 // Cache the root blog's show_avatars setting, to avoid unnecessary 75 // calls to switch_to_blog() 76 $bp->avatar->show_avatars = (bool) bp_get_option( 'show_avatars' ); 77 74 78 // Backpat for pre-1.5 75 79 if ( ! defined( 'BP_AVATAR_UPLOAD_PATH' ) ) … … 97 101 98 102 // If avatars are disabled for the root site, obey that request and bail 99 if ( ! b p_get_option( 'show_avatars' ))103 if ( ! buddypress()->avatar->show_avatars ) 100 104 return; 101 105
Note: See TracChangeset
for help on using the changeset viewer.