Skip to:
Content

BuddyPress.org

Changeset 8971


Ignore:
Timestamp:
08/29/2014 10:28:53 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Officially deprecate bp_avatar_upload_form(), a function that's gone unused for several years that only called another function that no longer even exists.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/deprecated/2.1.php

    r8958 r8971  
    624624    return bp_signup_get_subdomain_base();
    625625}
     626
     627/**
     628 * Alledgedly output an avatar upload form, but it hasn't done that since 2009.
     629 *
     630 * @since BuddyPress (1.0.0)
     631 * @deprecated BuddyPress (2.1.0)
     632 */
     633function bp_avatar_upload_form() {
     634    _deprecated_function(__FUNCTION__, '2.1', 'No longer used' );
     635}
     636
  • trunk/src/bp-xprofile/bp-xprofile-template.php

    r8963 r8971  
    705705    }
    706706
    707 function bp_avatar_upload_form() {
    708     global $bp;
    709 
    710     if ( !(int) $bp->site_options['bp-disable-avatar-uploads'] )
    711         bp_core_avatar_admin( null, bp_loggedin_user_domain() . $bp->profile->slug . '/change-avatar/', bp_loggedin_user_domain() . $bp->profile->slug . '/delete-avatar/' );
    712     else
    713         _e( 'Profile photo uploads are currently disabled. Why not use a <a href="http://gravatar.com" target="_blank">gravatar</a> instead?', 'buddypress' );
    714 }
    715 
    716707function bp_profile_last_updated() {
    717708
Note: See TracChangeset for help on using the changeset viewer.