[wp-trac] [WordPress Trac] #36084: Link to media images now get a rel=attachement

WordPress Trac noreply at wordpress.org
Mon Mar 7 15:20:02 UTC 2016


#36084: Link to media images now get a rel=attachement
----------------------------------------+------------------------
 Reporter:  csschris                    |       Owner:  joemcgill
     Type:  defect (bug)                |      Status:  accepted
 Priority:  normal                      |   Milestone:  4.5
Component:  Media                       |     Version:  4.4.2
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------

Comment (by joemcgill):

 Actually, we probably need to update `image_media_send_to_editor()` as
 well, so it becomes responsible for generating the `rel`, instead of
 relying on `get_image_send_to_editor()`. [attachment:36084.2.diff] uses
 the same logic as `wp_ajax_send_attachment_to_editor()` for building the
 `$rel` attribute.

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


More information about the wp-trac mailing list