mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed issue with avatars/cover photos upload without crop;
This commit is contained in:
@@ -1640,14 +1640,11 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
* Update files
|
||||
*
|
||||
* @param $changes
|
||||
*
|
||||
* @deprecated 2.1.0
|
||||
*/
|
||||
function update_files( $changes ) {
|
||||
|
||||
foreach ( $changes as $key => $uri ) {
|
||||
$src = um_is_temp_upload( $uri );
|
||||
UM()->files()->new_user_upload( $this->id, $src, $key );
|
||||
}
|
||||
|
||||
um_deprecated_function( 'update_files', '2.1.0', '' );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user