Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/29/2020 03:38:06 PM (16 months ago)
Author:
imath
Message:

Move Avatars & Cover from xProfile to Members component : step 3

Move the Avatar upload directory filter from the xProfile functions to the Members functions.
Move the Avatar template functions from xProfile to the Members component.

See #8156

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-template.php

    r12529 r12555  
    12061206
    12071207/**
    1208  * Render an avatar delete link.
    1209  *
    1210  * @since 1.1.0
    1211  */
    1212 function bp_avatar_delete_link() {
    1213     echo bp_get_avatar_delete_link();
    1214 }
    1215 
    1216     /**
    1217      * Return an avatar delete link.
    1218      *
    1219      * @since 1.1.0
    1220      *
    1221      * @return string
    1222      */
    1223     function bp_get_avatar_delete_link() {
    1224 
    1225         /**
    1226          * Filters the link used for deleting an avatar.
    1227          *
    1228          * @since 1.1.0
    1229          *
    1230          * @param string $value Nonced URL used for deleting an avatar.
    1231          */
    1232         return apply_filters( 'bp_get_avatar_delete_link', wp_nonce_url( bp_displayed_user_domain() . bp_get_profile_slug() . '/change-avatar/delete-avatar/', 'bp_delete_avatar_link' ) );
    1233     }
    1234 
    1235 /**
    12361208 * Render an edit profile button.
    12371209 *
Note: See TracChangeset for help on using the changeset viewer.