WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 4 years ago

#7279 closed defect (bug) (fixed)

image_resize function can not load image

Reported by: 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)

comment:1 Denis-de-Bernardy5 years ago

  • Component changed from General to Media
  • Owner anonymous deleted

comment:2 azaozz4 years ago

  • Milestone changed from 2.9 to 3.0

comment:3 dd324 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.