Skip to:
Content
Pages
Categories
Search
Top
Bottom

WP 3.5 Upload Avatar Not Working

  • Avatar of NolanD626
    NolanD626
    Participant

    @noland626

    In WordPress 3.5+ the upload avatar core doesn’t not work. The following function needs to be changed from:
    `
    // Check image size and shrink if too large
    if ( $size[0] > bp_core_avatar_original_max_width() ) {
    $thumb = wp_create_thumbnail( $bp->avatar_admin->original, bp_core_avatar_original_max_width() );
    `
    to this:
    `
    // Check image size and shrink if too large
    if ( $size[0] > bp_core_avatar_original_max_width() ) {
    $thumb = image_resize( $bp->avatar_admin->original, bp_core_avatar_original_max_width(), null );
    `
    Or something like that, it would probably be better to not pass a null parameter but it works.

    In WP 3.5+ wp_create_thumbnail is deprecated.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.