[wp-trac] [WordPress Trac] #22101: Gallery shortcode with link="file" is not linking the file in the RSS feed

WordPress Trac noreply at wordpress.org
Wed May 10 21:24:58 UTC 2017


#22101: Gallery shortcode with link="file" is not linking the file in the RSS feed
-------------------------------------------------+-------------------------
 Reporter:  ifrins                               |       Owner:  iworks
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Feeds                                |  Review
 Severity:  normal                               |     Version:  3.4.2
 Keywords:  needs-testing good-first-bug has-    |  Resolution:
  patch                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by stevenkword):

 [attachment:22101.2.diff] updates the logic to account for the following
 cases

 Default: links to image attachment page url
 `[gallery ids="5,1464"]`

 URL: Links to image file url
 `[gallery link="http://src.wordpress-develop.dev/wp-
 content/uploads/2017/04/IMG_20150829_100814.jpg"]`

 None: Does not link
 `[gallery ids="5" link="none"]`

 File: Links to image file url
 `[gallery ids="5" link="file"]`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22101#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list