[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
Mon Nov 8 23:06:05 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:  closed
 Priority:  normal                           |   Milestone:  5.9
Component:  General                          |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52061" 52061]:
 {{{
 #!CommitTicketReference repository="" revision="52061"
 General: Add "noopener" to `wp_list_bookmarks()` output.

 In the bookmarks walker `_walk_bookmarks()`, add a `'noopener'` to the
 bookmark's `rel` attribute when there's `target` attribute.

 Adds a new test class for `wp_list_bookmarks()` and tests for this change.

 Follow-up to [3880], [10712].

 Props birgire, costdev, hellofromTonya, mukesh27 , sergeybiryukov, tw2113.
 Fixes #53839.
 }}}

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


More information about the wp-trac mailing list