[buddypress-trac] [BuddyPress Trac] #8326: Apply UGC attribute for activity links

buddypress-trac noreply at wordpress.org
Sat Jul 4 10:33:35 UTC 2020

#8326: Apply UGC attribute for activity links
 Reporter:  vapvarun               |       Owner:  (none)
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  7.0.0
Component:  Activity               |     Version:  6.1.0
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
Changes (by imath):

 * keywords:  has-patch commit => has-patch 2nd-opinion


 I just had another look into it, what happens for activities containing
 links before this patch is applied ? I believe they shouldn't have the
 `ugc` `rel` attribute.

 We should probably do `str_replace( array( ' rel="nofollow"', "
 rel='nofollow'", ' rel="nofollow ugc"', " rel='nofollow ugc'"), '', $text
 )`. What do you think?

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8326#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list