Skip to:
Content

bbPress.org

Opened 14 months ago

Last modified 2 months ago

#3318 reopened enhancement

Add rel="nofollow ugc" to links in topics and replies

Reported by: diddledan Owned by:
Milestone: Priority: high
Severity: major Version: trunk
Component: API - Formatting Keywords: has-patch dev-feedback
Cc: SirLouen

Description

Currently bbpress adds rel=nofollow to links in topics and replies. Following recent changes referenced at https://webmasters.googleblog.com/2019/09/evolving-nofollow-new-ways-to-identify.html and the precedent by WordPress Core at https://core.trac.wordpress.org/ticket/48022 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.

Attachments (1)

3318.diff (4.3 KB) - added by diddledan 14 months ago.
Patch to add rel="nofollow ugc" to topic and reply content when displaying

Download all attachments as: .zip

Change History (5)

@diddledan
14 months ago

Patch to add rel="nofollow ugc" to topic and reply content when displaying

#1 @diddledan
14 months ago

  • Keywords has-patch added
  • Type changed from defect to enhancement
  • Version set to trunk

#2 @johnjamesjacoby
2 months ago

#3361 was marked as a duplicate.

#3 @SirLouen
2 months ago

  • Cc SirLouen added
  • Component changed from General to API - Formatting
  • Keywords dev-feedback added
  • Milestone Awaiting Review deleted
  • Priority changed from normal to high
  • Resolution set to invalid
  • Severity changed from normal to major
  • Status changed from new to closed

@johnjamesjacoby note that @diddledan already provided a possible patch there which is fine.

The only problem is that this patch doesnt follow the new core guidelines based on wp_rel_callback which is a little bit more generic and permits adding other rel elements like UGC in this case with wp_rel_ugc which is way more simpler.

More info:
https://make.wordpress.org/core/2019/10/03/wp-5-3-introduces-new-functions-to-add-ugc-attribute-to-links-and-implements-it-to-comments/

#4 @SirLouen
2 months ago

  • Resolution invalid deleted
  • Status changed from closed to reopened
Note: See TracTickets for help on using tickets.