[wp-trac] [WordPress Trac] #19695: Links widget does not generate width or height attributes when showing an image

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 31 00:14:24 UTC 2011


#19695: Links widget does not generate width or height attributes when showing an
image
------------------------------------------------+--------------------------
 Reporter:  mbijon                              |       Owner:
     Type:  defect (bug)                        |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
Component:  Widgets                             |  Review
 Severity:  normal                              |     Version:  3.3
 Keywords:  dev-feedback 2nd-opinion has-patch  |  Resolution:
------------------------------------------------+--------------------------

Comment (by dd32):

 I don't like this one bit, for the simple reason that getimagesize() is
 called on every request, quite potentially on a remote file, and due to
 the output not being scaled, it really provides little benefit for the
 performance hit it takes.

 I'd prefer to see it support the width/height attributes if the item was
 added from the media library, otherwise just skip them. Of course, the
 Links stuff doesn't support the media library though, sounds like a great
 enhancement there for the day that links is moved from core to a plugin..

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19695#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list