Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#4958 closed enhancement (fixed)

Add rel="nofollow ugc" to user-generated links

Reported by: diddledani's profile diddledani Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: General Keywords: has-patch


Currently adds rel=nofollow to links generated by users. Following recent changes referenced at and the precedent by WordPress Core at we should add to the rel attribute the additional ugc value to indicate User-Generated Content. Attached is a patch to do just this based in part on WordPress Core's implementation.

The bbpress ticket at contains the bbpress-specific changes to add ugc into topic and reply content. Once that is committed to bbpress trunk and filtered through onto, combined with the patch attached here committed to and deployed, the changes will be complete.

Attachments (1)

4958.diff (3.4 KB) - added by diddledani 4 years ago.
Patch to add rel="nofollow ugc" to user-generated content

Download all attachments as: .zip

Change History (7)

4 years ago

Patch to add rel="nofollow ugc" to user-generated content

#1 @diddledani
4 years ago

  • Keywords has-patch added

#2 @diddledani
4 years ago

  • Type changed from defect to enhancement

This ticket was mentioned in Slack in #bbpress by casiepa. View the logs.

4 years ago

#4 @dd32
4 years ago

In 9469:

Support Forums: Add the ugc class to user supplied URLs.

Props diddledan.
See #4958.

#5 @dd32
4 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 9470:

Plugin Directory: Add ugc to rel="nofollow" links in user supplied content.

Props diddledan.
Fixes #4958.

#6 @Otto42
4 years ago

In 9708:

Support forums: Add ugc to links in topic and replies content (which already had nofollow). See #4958.

Note: See TracTickets for help on using tickets.