Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/17/2015 06:42:02 PM (5 years ago)
Author:
imath
Message:

Do some clean up in avatar uploads directory filters

Let WordPress creates the uploads directory for us.

Props johnjamesjacoby

See #6278

File:
1 edited

Legend:

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

    r9471 r9625  
    681681    }
    682682
    683     $path    = bp_core_avatar_upload_path() . '/' . $directory. '/' . $user_id;
    684     $newbdir = $path;
    685 
    686     if ( ! file_exists( $path ) ) {
    687         @wp_mkdir_p( $path );
    688     }
    689 
     683    $path      = bp_core_avatar_upload_path() . '/' . $directory. '/' . $user_id;
     684    $newbdir   = $path;
    690685    $newurl    = bp_core_avatar_url() . '/' . $directory. '/' . $user_id;
    691686    $newburl   = $newurl;
Note: See TracChangeset for help on using the changeset viewer.