[wp-trac] [WordPress Trac] #48022: Support "ugc" rel attribute value in comments

WordPress Trac noreply at wordpress.org
Tue Sep 17 03:05:45 UTC 2019


#48022: Support "ugc" rel attribute value in comments
-------------------------------------------------+-------------------------
 Reporter:  audrasjb                             |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.3
Component:  Comments                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-dev-note has-unit-   |     Focuses:
  tests dev-feedback                             |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 [attachment:"48022.5.diff"] is a good start, though I'm not a fan of
 duplicating the entire `wp_rel_nofollow_callback()` function just for a
 different attribute :)

 * Could we introduce a helper function that both
 `wp_rel_nofollow_callback()` and `wp_rel_ugc_callback()` could wrap?
 * Perhaps we could even just add `ugc` to the existing
 `wp_rel_nofollow_callback()` function? Core only uses it for comments,
 though I guess [https://wpdirectory.net/search/01DMYJ8F9PNB0QV7JK527Z6TZY
 plugins] and [https://wpdirectory.net/search/01DMYJTKQFX6TYTY19EK0ZRVPD
 themes] could use it for other purposes, which would need to be explored.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48022#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list