Opened 5 years ago
Closed 3 years ago
#7279 closed defect (bug) (fixed)
image_resize function can not load image
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | |
| 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)
Note: See
TracTickets for help on using
tickets.
(In [13860]) Fix image_resize() dependencies by moving wp_load_image() from admin includes to wp-includes. Fixes #7279