[wp-trac] [WordPress Trac] #53839: Add rel="noopener" to output of wp_list_bookmarks() when target is set to "_blank"

WordPress Trac noreply at wordpress.org
Thu Dec 16 18:28:53 UTC 2021


#53839: Add rel="noopener" to output of wp_list_bookmarks() when target is set to
"_blank"
---------------------------------------------+-----------------------------
 Reporter:  tw2113                           |       Owner:  hellofromTonya
     Type:  enhancement                      |      Status:  reopened
 Priority:  normal                           |   Milestone:  5.9
Component:  General                          |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------

Comment (by hellofromTonya):

 Hey @davidbinda, Thank you for finding the issue in the new test case and
 contributing the [attachment:"53839-2.diff"] patch. The new test method
 added is a duplicate of the test in the data provider. I combined that new
 test with `test_wp_list_bookmarks_adds_noopener()` test by adding the
 expected `rel=""` string to  each dataset.

 Marking for commit.

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


More information about the wp-trac mailing list