Make WordPress Core

Opened 18 years ago

Closed 16 years ago

#7279 closed defect (bug) (fixed)

image_resize function can not load image

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

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
17 years ago

  • Component GeneralMedia
  • Owner anonymous removed

#2 @azaozz
17 years ago

  • Milestone 2.93.0

#3 @dd32
16 years ago

  • Resolutionfixed
  • Status newclosed

(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.