Skip to:
Content

BuddyPress.org

Changeset 12562


Ignore:
Timestamp:
03/01/2020 07:46:23 PM (5 months ago)
Author:
imath
Message:

Deprecate xProfile functions about avatar & cover image change

The two functions are:

  • xprofile_screen_change_cover_image()
  • xprofile_screen_change_avatar()

Fixes #8156

File:
1 edited

Legend:

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

    r12558 r12562  
    6262    bp_members_action_delete_avatar();
    6363}
     64
     65/**
     66 * Displays the change cover image page.
     67 *
     68 * @since 2.4.0
     69 * @deprecated 6.0.0
     70 */
     71function xprofile_screen_change_cover_image() {
     72    _deprecated_function( __FUNCTION__, '6.0.0', 'bp_members_screen_change_cover_image()' );
     73
     74    bp_members_screen_change_cover_image();
     75}
     76
     77/**
     78 * Handles the uploading and cropping of a user avatar. Displays the change avatar page.
     79 *
     80 * @since 1.0.0
     81 * @deprecated 6.0.0
     82 */
     83function xprofile_screen_change_avatar() {
     84    _deprecated_function( __FUNCTION__, '6.0.0', 'bp_members_screen_change_avatar()' );
     85
     86    bp_members_screen_change_avatar();
     87}
Note: See TracChangeset for help on using the changeset viewer.