Skip to:

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#4608 closed defect (bug) (fixed)

wp_create_thumbnail() deprecated as of WP 3.5 - avater uploads will fail currently

Reported by: hnla's profile hnla Owned by:
Milestone: 1.6.2 Priority: highest
Severity: critical Version: 1.6.1
Component: Core Keywords: needs-patch dev-feedback
Cc: hnla, mercijavier@…


As of WP 3.5 wp_create_thumbnail() is deprecated:

Call to undefined function wp_create_thumbnail() in E:\www\vhost\\site\htdocs\wp-content\plugins\buddypress\bp-core\bp-core-avatars.php on line 521

/wp-admin/includes/deprecated.php : line 1013
@deprecated 3.5.0
@deprecated Use image_resize()

fixed if we set a mandatory third parameter for height:

$thumb = image_resize( $bp->avatar_admin->originalfile?, bp_core_avatar_original_max_width(), $requires_third_paramter_height );

Change History (8)

#1 @mercime
11 years ago

  • Cc mercijavier@… added

#2 @DJPaul
11 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 1.7

#3 @DJPaul
11 years ago

  • Severity changed from major to normal

#5 @DJPaul
11 years ago

  • Keywords dev-feedback added
  • Milestone changed from 1.7 to 1.6.2
  • Priority changed from normal to high
  • Severity changed from normal to critical

The error is thrown because wp_create_thumbnail() was in wp-admin/includes/image.php (which we've explicitly been including), but it's been moved to wp-admin/includes/deprecated.php.

I don't think this can be considered a regression in WP 3.5 as we've always explicitly included a file which is only used inside wp-admin by WP. We need to fix this in the 1.6 branch for a day zero release alongside WP 3.5, which gives us about a month to finish and test 1.6.2.

#6 @DJPaul
11 years ago

  • Priority changed from high to highest

#7 @djpaul
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6562]) Fix avatar cropping for WordPress 3.5. Fixes #4608 for the 1.6 branch.

#8 @djpaul
11 years ago

(In [6564]) Fix avatar cropping for WordPress 3.5. Fixes #4608 for trunk.

Note: See TracTickets for help on using tickets.