[wp-trac] [WordPress Trac] #43280: Add rel="noopener" to target="_blank" links by default in image widget

WordPress Trac noreply at wordpress.org
Thu Mar 21 15:13:26 UTC 2019


#43280: Add rel="noopener" to target="_blank" links by default in image widget
---------------------------------------------+-----------------------
 Reporter:  audrasjb                         |       Owner:  audrasjb
     Type:  enhancement                      |      Status:  assigned
 Priority:  normal                           |   Milestone:  5.2
Component:  Widgets                          |     Version:  4.9.4
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch commit has-unit-tests  |     Focuses:
---------------------------------------------+-----------------------

Comment (by afercia):

 For consistency with images added in the post content, I'd think the
 behavior should be different.

 In the post content, images get `noopener noreferrer` even if users set
 their own value. Also, when reopening the details modal, the "rel" field
 is populated with `noopener noreferrer` plus any custom value previously
 added:

 [[Image(http://cldup.com/3gBfUq6uDV.png)]]

 Instead, with this patch `noopener noreferrer` are added only if the field
 is empty. Also, when reopening the details modal the field is empty.

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


More information about the wp-trac mailing list