[wp-trac] [WordPress Trac] #45352: wp_targeted_link_rel filter can result in rel attribute with no value

WordPress Trac noreply at wordpress.org
Tue Jan 22 21:54:31 UTC 2019


#45352: wp_targeted_link_rel filter can result in rel attribute with no value
-------------------------------------------------+-------------------------
 Reporter:  spartank                             |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.1
Component:  Formatting                           |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

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


Comment:

 In [changeset:"44691" 44691]:
 {{{
 #!CommitTicketReference repository="" revision="44691"
 Formatting: Prevent `wp_targeted_link_rel()` adding an empty attribute.

 Bypass adding a `rel` attribute when the `wp_targeted_link_rel` filter
 returns an empty string or other falsy result.

 Props mcmwebsol, spartank, meatman89fs.
 Fixes #45352.
 }}}

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


More information about the wp-trac mailing list