Changeset 7756 for trunk/bp-core/bp-core-avatars.php
- Timestamp:
- 01/24/2014 11:48:48 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r7585 r7756 13 13 function bp_core_set_avatar_constants() { 14 14 15 $bp = buddypress(); 16 15 17 if ( !defined( 'BP_AVATAR_THUMB_WIDTH' ) ) 16 18 define( 'BP_AVATAR_THUMB_WIDTH', 50 ); … … 29 31 30 32 if ( !defined( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' ) ) { 31 32 $bp = buddypress();33 33 34 34 if ( !isset( $bp->site_options['fileupload_maxk'] ) ) { … … 40 40 41 41 if ( !defined( 'BP_AVATAR_DEFAULT' ) ) 42 define( 'BP_AVATAR_DEFAULT', BP_PLUGIN_URL. 'bp-core/images/mystery-man.jpg' );42 define( 'BP_AVATAR_DEFAULT', $bp->plugin_url . 'bp-core/images/mystery-man.jpg' ); 43 43 44 44 if ( !defined( 'BP_AVATAR_DEFAULT_THUMB' ) ) 45 define( 'BP_AVATAR_DEFAULT_THUMB', BP_PLUGIN_URL. 'bp-core/images/mystery-man-50.jpg' );45 define( 'BP_AVATAR_DEFAULT_THUMB', $bp->plugin_url . 'bp-core/images/mystery-man-50.jpg' ); 46 46 47 47 if ( ! defined( 'BP_SHOW_AVATARS' ) ) { … … 472 472 // No avatar was found, and we've been told not to use a gravatar. 473 473 } else { 474 $gravatar = apply_filters( "bp_core_default_avatar_$object", BP_PLUGIN_URL. 'bp-core/images/mystery-man.jpg', $params );474 $gravatar = apply_filters( "bp_core_default_avatar_$object", $bp->plugin_url . 'bp-core/images/mystery-man.jpg', $params ); 475 475 } 476 476
Note: See TracChangeset
for help on using the changeset viewer.