Skip to:
Content

BuddyPress.org

Ticket #7023: patch2.patch

File patch2.patch, 1.8 KB (added by VibeThemes, 8 years ago)

bp_displayed_user_domain instead of bp_loggedin_user_domain

  • src/bp-notifications/bp-notifications-template.php

    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() { 
    8585         * @return string Unread notifications permalink.
    8686         */
    8787        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' );
    8989
    9090                /**
    9191                 * Filters the unread notifications permalink.
    function bp_notifications_unread_permalink() { 
    104104 */
    105105function bp_notifications_read_permalink() {
    106106        echo bp_get_notifications_read_permalink();
    107 }
     107} 
    108108        /**
    109109         * Return the read notifications permalink.
    110110         *
    function bp_notifications_read_permalink() { 
    113113         * @return string Read notifications permalink.
    114114         */
    115115        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' );
    117117
    118118                /**
    119119                 * Filters the read notifications permalink.