Skip to:
Content

bbPress.org

Opened 11 years ago

Closed 10 years ago

#2515 closed task (blessed) (fixed)

add rel nofollow to topic reply link

Reported by: hamedt's profile Hamed.T Owned by: netweb's profile netweb
Milestone: 2.6 Priority: low
Severity: normal Version: 2.5.3
Component: Component - Replies Keywords: has-patch commit
Cc:

Description

/wordpress/topic/test/?bbp_reply_to=7&_wpnonce=809f2db4b8#new-post

it's not SEO friendly, how can i add rel no follow to it?

Attachments (3)

2515.diff (1.5 KB) - added by netweb 11 years ago.
2515.2.diff (1.2 KB) - added by netweb 10 years ago.
2515.3.diff (1.2 KB) - added by netweb 10 years ago.

Download all attachments as: .zip

Change History (10)

#1 @johnjamesjacoby
11 years ago

  • Milestone changed from Awaiting Review to 2.6
  • Priority changed from omg sweet tea to low

This is relatively low on the scale of things to fix, but we'll make sure it gets in for 2.6.

@netweb
11 years ago

#2 @netweb
11 years ago

  • Keywords has-patch added; needs-docs needs-patch removed

In 2515.diff​ Add rel="nofollow" to bbp_get_topic_reply_link and bbp_get_reply_to_link 'reply' links

This ticket was mentioned in IRC in #bbpress-dev by netweb. View the logs.


10 years ago

#4 @netweb
10 years ago

  • Owner set to netweb

@netweb
10 years ago

#5 @netweb
10 years ago

  • Keywords commit added

In 2515.2.diff​ use helper functions bbp_rel_nofollow() to add rel="nofollow" and stripslashes to bbp_get_topic_reply_link and bbp_get_reply_to_link links.

@netweb
10 years ago

#6 @netweb
10 years ago

In 2515.3.diff, refresh against /trunk and uses wp_unslash

#7 @netweb
10 years ago

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

In 5727:

Add bbp_rel_nofollow and wp_unslash filters to bbp_get_topic_reply_link and bbp_get_reply_to_link topic reply links.

Props netweb. Fixes #2515

Note: See TracTickets for help on using tickets.