Opened 5 years ago
Last modified 4 years ago
#3318 reopened enhancement
Add rel="nofollow ugc" to links in topics and replies
Reported by: | diddledani | 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)
Change History (5)
#1
@
5 years ago
- Keywords has-patch added
- Type changed from defect to enhancement
- Version set to trunk
#3
@
4 years 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.
Patch to add rel="nofollow ugc" to topic and reply content when displaying