-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
The slideshow <img src=""> includes the full-size attachments, even for small slideshows. This easily results in tens of megabytes downloaded, which is wasteful on capped connections and disastrous on slow ones.
After wading through the source code, I've narrowed it down to this line:
(in retrospect, it would've been faster to search Github for "wp_get_attachment_image_src", rather than tracing my way from
| /** |
You should use the second argument $size to fix this. (https://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src)
To automate this process, you could use https://codex.wordpress.org/Function_Reference/wp_get_attachment_image instead. (I'm not sure if this is the best idea.)
Metadata
Metadata
Assignees
Labels
No labels