Changeset 6884
- Timestamp:
- 04/02/2013 09:07:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r6882 r6884 44 44 if ( !defined( 'BP_AVATAR_DEFAULT_THUMB' ) ) 45 45 define( 'BP_AVATAR_DEFAULT_THUMB', BP_PLUGIN_URL . 'bp-core/images/mystery-man-50.jpg' ); 46 47 if ( ! defined( 'BP_SHOW_AVATARS' ) ) { 48 define( 'BP_SHOW_AVATARS', bp_get_option( 'show_avatars' ) ); 49 } 46 50 } 47 51 add_action( 'bp_init', 'bp_core_set_avatar_constants', 3 ); … … 74 78 // Cache the root blog's show_avatars setting, to avoid unnecessary 75 79 // calls to switch_to_blog() 76 $bp->avatar->show_avatars = (bool) bp_get_option( 'show_avatars' );80 $bp->avatar->show_avatars = (bool) BP_SHOW_AVATARS; 77 81 78 82 // Backpat for pre-1.5
Note: See TracChangeset
for help on using the changeset viewer.