[wp-trac] [WordPress Trac] #48022: Support "ugc" rel attribute value in comments

WordPress Trac noreply at wordpress.org
Sat Sep 14 06:28:28 UTC 2019


#48022: Support "ugc" rel attribute value in comments
-------------------------------------------------+-------------------------
 Reporter:  audrasjb                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  5.3
Component:  Comments                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  dev-feedback has-patch needs-        |     Focuses:
  testing needs-unit-tests                       |
-------------------------------------------------+-------------------------

Comment (by audrasjb):

 Good catch @joostdevalk, thanks. We should definitely use `nofollow ugc`.

 Thanks for the refresh @dkarfa but I think we'll encounter some edge
 cases:
 - If the link is already containing `nofollow` tag, we want to replace
 that with `nofollow ugc`
 - If the link is already containing `ugc` tag, we want to replace that
 with `nofollow ugc`
 - If the link is already containing `ugc nofollow` tag, we want to replace
 that with `nofollow ugc`

 I guess we would also need some unit tests.
 Will try to work on these tomorrow :)

 Cheers,
 Jb

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


More information about the wp-trac mailing list