[wp-trac] [WordPress Trac] #48022: Support "ugc" rel attribute value in comments
WordPress Trac
noreply at wordpress.org
Mon Oct 21 20:39:29 UTC 2019
#48022: Support "ugc" rel attribute value in comments
-------------------------------------------------+-------------------------
Reporter: audrasjb | Owner:
| SergeyBiryukov
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 5.3
Component: Comments | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests has-dev- | Focuses:
note commit dev-reviewed |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"46564" 46564]:
{{{
#!CommitTicketReference repository="" revision="46564"
Comments: Add `rel="nofollow ugc"` attribute when converting plain URLs to
`<a>` tags in comments via `make_clickable()`.
Introduce `make_clickable_rel` filter for the `rel` value that is added to
URL matches converted to links.
This is a follow-up to [46349], which added the `rel="nofollow ugc"`
attribute to existing `<a>` tags in comments via `wp_rel_ugc()`.
UGC stands for User Generated Content, and the `ugc` attribute value is
recommended for links within user generated content, such as comments and
forum posts.
See https://webmasters.googleblog.com/2019/09/evolving-nofollow-new-ways-
to-identify.html.
Props blogginglife, SergeyBiryukov.
Reviewed by desrosj, audrasjb.
Fixes #48022.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48022#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list