Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4634 closed defect (bug) (duplicate)

Wordpress 3.5+ and BuddyPress Upload Avatar Fix

Reported by: noland626's profile NolanD626 Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.6.1
Component: Core Keywords: needs-patch needs-testing
Cc: nolandempster@…

Description

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['file'], 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['file'], bp_core_avatar_original_max_width(), null );

In WP 3.5+ wp_create_thumbnail is deprecated.

Attachments (1)

bp-core-avatars.php (29.4 KB) - added by NolanD626 12 years ago.
bp-core-avatars.php

Download all attachments as: .zip

Change History (5)

@NolanD626
12 years ago

bp-core-avatars.php

#2 @hnla
12 years ago

Well it's a duplicate really!

#3 @DJPaul
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Thanks for patch. Closing as duplicate of #4608

#4 @labsecrets
12 years ago

1) Patch works great
2) As of version 1.6.2 - patch does not seem to have been committed to core (?maybe I missed something?)
3) BuddyPress.org still shows only 1.6.1 as download version: http://buddypress.org/download/

Probably we'll see this in 1.6.3 and synch BP page and WP repository versions for download?

Note: See TracTickets for help on using tickets.