From 3f0f0784921654b16d81fef0c704be9670849cb2 Mon Sep 17 00:00:00 2001
From: Ripul Kumar <vibethemes@gmail.com>
Date: Mon, 18 Apr 2016 16:59:31 +0530
Subject: [PATCH]
bp_notifications_unread_permalink,bp_get_notifications_read_permalink should
use bp_displayed_user_domain instead of bp_loggedin_user_domain
---
src/bp-notifications/bp-notifications-template.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/bp-notifications/bp-notifications-template.php b/src/bp-notifications/bp-notifications-template.php
index fc4d82c..c5d0ac0 100644
a
|
b
|
function bp_notifications_unread_permalink() { |
85 | 85 | * @return string Unread notifications permalink. |
86 | 86 | */ |
87 | 87 | function bp_get_notifications_unread_permalink() { |
88 | | $retval = trailingslashit( bp_loggedin_user_domain() . bp_get_notifications_slug() . '/unread' ); |
| 88 | $retval = trailingslashit( bp_displayed_user_domain() . bp_get_notifications_slug() . '/unread' ); |
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Filters the unread notifications permalink. |
… |
… |
function bp_notifications_unread_permalink() { |
104 | 104 | */ |
105 | 105 | function bp_notifications_read_permalink() { |
106 | 106 | echo bp_get_notifications_read_permalink(); |
107 | | } |
| 107 | } |
108 | 108 | /** |
109 | 109 | * Return the read notifications permalink. |
110 | 110 | * |
… |
… |
function bp_notifications_read_permalink() { |
113 | 113 | * @return string Read notifications permalink. |
114 | 114 | */ |
115 | 115 | function bp_get_notifications_read_permalink() { |
116 | | $retval = trailingslashit( bp_loggedin_user_domain() . bp_get_notifications_slug() . '/read' ); |
| 116 | $retval = trailingslashit( bp_displayed_user_domain() . bp_get_notifications_slug() . '/read' ); |
117 | 117 | |
118 | 118 | /** |
119 | 119 | * Filters the read notifications permalink. |