[buddypress-trac] [BuddyPress] #4634: Wordpress 3.5+ and BuddyPress Upload Avatar Fix
buddypress-trac
noreply at wordpress.org
Wed Oct 31 10:09:10 UTC 2012
#4634: Wordpress 3.5+ and BuddyPress Upload Avatar Fix
--------------------------+---------------------------------------
Reporter: NolanD626 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 1.6.1
Severity: normal | Keywords: needs-patch needs-testing
--------------------------+---------------------------------------
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.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4634>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list