[wp-trac] [WordPress Trac] #23292: Media uploader loads full size image and slows down, please change to thumbnails.

WordPress Trac noreply at wordpress.org
Fri Jan 25 09:31:12 UTC 2013


#23292: Media uploader loads full size image and slows down, please change to
thumbnails.
-------------------------------------+--------------------------
 Reporter:  mnrtjeR                  |       Type:  defect (bug)
   Status:  new                      |   Priority:  normal
Milestone:  Awaiting Review          |  Component:  General
  Version:  3.5                      |   Severity:  normal
 Keywords:  has-patch needs-testing  |
-------------------------------------+--------------------------
 The media uploader is really slow if you upload 1024 x 768 images, the
 reason for this is that the preview shows full size images.

 Underneath here is a quick fix to speed up the media uploader to
 thumbnails.
 Please change rule #1333 in "wp-includes/media.php" from:

 $attachment_url = wp_get_attachment_url( $attachment->ID );

 to:

 $attachment_url = wp_get_attachment_thumb_url($attachment->ID );

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23292>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list