[wp-trac] [WordPress Trac] #21114: Add Link to Large Image in Add Media Window

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 29 16:07:37 UTC 2012


#21114: Add Link to Large Image in Add Media Window
---------------------------+-------------------------------------
 Reporter:  robertstaddon  |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  3.4
 Severity:  normal         |   Keywords:  has-patch needs-testing
---------------------------+-------------------------------------
 Usually when an image thumbnail is inserted into a post, I would like the
 thumbnail to link to the large version of the image, not the full size
 version. Often the full size version is straight from a user's high-
 megapixel camera and takes a while to load, while the large version has
 been automatically downsized by Wordpress according to its media settings
 and works beautifully with a lightbox plugin or script.

 Wordpress automatically creates a large version of the image, but
 unfortunately it does not support linking to the large version very easily
 at all from the Add Media window. This patch adds the option to link to
 either the Full Size Image or the Large Image from the Add Media window.

 I've used the attached patch to the Wordpress core ever since the version
 2 era. I thought I'd try submitting it as an enhancement so I that I won't
 have to keep manually applying it every time that I upgrade Wordpress.

 One note: The line that says "$url = $fileLarge;" makes the large file the
 default link for an image. This may be too drastic of a change for
 Wordpress. However, most of my clients would vote that it should be the
 default, so I thought I'd try submitting it anyway. :) If other people
 disagree, then I could certainly remove that line of code so that the
 large image would be an option but not the default option.

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


More information about the wp-trac mailing list