Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/08/2012 08:19:20 PM (13 years ago)
Author:
djpaul
Message:

Make sure that BP_AVATAR_UPLOAD_PATH and BP_AVATAR_URL are set. Fixes #4243.

This improves backwards compatibility with BP 1.2 era code which used these
constants directly, instead of the $bp->avatar->upload_path and
$bp->avatar->url variables (which didn't exist then).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-avatars.php

    r6046 r6062  
    7171    $bp->avatar->upload_path = bp_core_avatar_upload_path();
    7272    $bp->avatar->url         = bp_core_avatar_url();
     73
     74    // Backpat for pre-1.5
     75    if ( ! defined( 'BP_AVATAR_UPLOAD_PATH' ) )
     76        define( 'BP_AVATAR_UPLOAD_PATH', $bp->avatar->upload_path );
     77
     78    // Backpat for pre-1.5
     79    if ( ! defined( 'BP_AVATAR_URL' ) )
     80        define( 'BP_AVATAR_URL', $bp->avatar->url );
    7381
    7482    do_action( 'bp_core_set_avatar_globals' );
Note: See TracChangeset for help on using the changeset viewer.