[wp-trac] [WordPress Trac] #9959: wp_rel_nofollow_callback adds too many rel/nofollow attributes

WordPress Trac noreply at wordpress.org
Fri Sep 18 04:35:39 UTC 2015


#9959: wp_rel_nofollow_callback adds too many rel/nofollow attributes
----------------------------------------+-----------------------------
 Reporter:  Denis-de-Bernardy           |       Owner:  wonderboymusic
     Type:  defect (bug)                |      Status:  closed
 Priority:  low                         |   Milestone:  4.4
Component:  Comments                    |     Version:  2.8
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"34277"]:
 {{{
 #!CommitTicketReference repository="" revision="34277"
 Comments: in `wp_rel_nofollow_callback()`, account for the fact that a
 link might already have a `rel` attribute. Currently, if a link already
 has a `rel`, it will result it duplicate attributes on the element with
 conflicting values.

 Adds unit tests.

 Props junsuijin, wonderboymusic.
 Fixes #9959.
 }}}

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


More information about the wp-trac mailing list