[buddypress-trac] [BuddyPress Trac] #7448: buddypress/bp-friends/bp-friends-template.php

buddypress-trac noreply at wordpress.org
Thu Feb 23 18:41:08 UTC 2017


#7448: buddypress/bp-friends/bp-friends-template.php
--------------------------+--------------------
 Reporter:  allianse      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.9
Component:  Friends       |     Version:  2.8.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------
Changes (by r-a-y):

 * keywords:   => has-patch
 * milestone:  2.8.2 => 2.9


Comment:

 Hi,

 Thanks for the report.  It looks like you added a trailing slash to the
 end of the accept friendship URL.

 Since this behavior isn't a regression from a change we made in v2.8.0,
 this fix will have to wait until v2.9.0.

 In the meantime, you can fix this without touching core code by adding the
 following to your theme's `functions.php` or
 [https://codex.buddypress.org/themes/bp-custom-php/ wp-content/plugins/bp-
 custom.php]:

 `add_filter( 'bp_get_friend_accept_request_link', 'trailingslashit' );`

 ----

 Devs: This might be a good chance to audit all other similar links.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7448#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list