Make WordPress Core

Opened 16 years ago

Closed 14 years ago

#7279 closed defect (bug) (fixed)

image_resize function can not load image

Reported by: auirshadow's profile auirshadow Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

I have a plugin that makes use of the function image_resize in wp-includes/media.php to dynamically resize images on the public side of a website. However image_resize uses the function wp_load_image in wp-admin/includes/image.php which isn't available when not in the admin.

Shouldn't the load image function be moved so that it is available on the public side?

Change History (3)

#1 @Denis-de-Bernardy
15 years ago

  • Component changed from General to Media
  • Owner anonymous deleted

#2 @azaozz
14 years ago

  • Milestone changed from 2.9 to 3.0

#3 @dd32
14 years ago

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

(In [13860]) Fix image_resize() dependencies by moving wp_load_image() from admin includes to wp-includes. Fixes #7279

Note: See TracTickets for help on using tickets.