[buddypress-trac] [BuddyPress] #4624: Component subnav items should use displayed user domain, not loggedin user

buddypress-trac noreply at wordpress.org
Tue Oct 23 22:21:36 UTC 2012


#4624: Component subnav items should use displayed user domain, not loggedin user
--------------------------+--------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  1.6.2
Component:  Core          |     Version:
 Severity:  major         |  Resolution:
 Keywords:  dev-feedback  |
--------------------------+--------------------

Comment (by r-a-y):

 I think the reason why we don't use bp_displayed_user_domain() is because
 of the BuddyBar, since the BuddyBar and the options nav use the same code
 to render themselves.

 To workaround this in my own plugin, I do something like this:


 {{{
                 $domain = bp_displayed_user_domain() ?
 bp_displayed_user_domain() : bp_loggedin_user_domain();

                 $link = trailingslashit( $domain . $this->slug );
 }}}

 Let me know what you guys think.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4624#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list