Opened 5 weeks ago
Last modified 5 weeks ago
#9276 assigned defect (bug)
error when using $bp->displayed_user->domain
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 14.3.2 |
Component: | Documentation | Keywords: | |
Cc: |
Description
Using $bp->loggedin_user->domain like described here:
<a href="https://codex.buddypress.org/developer/the-bp-global/">https://codex.buddypress.org/developer/the-bp-global/</a>
throws an error on my page:
Undefined property: stdClass::$domain
So I am using the function bp_displayed_user_domain() instead which works. I am running PHP 8.2 if that matters.
If $bp->displayed_user->domain is deprecated or whatever can someone please update the docs?
Thanks!
Reason: Tried to use $bp->displayed_user->domain when testing this script here from shanep to add a new tab:
https://gist.github.com/shanebp/5d3d2f298727a0a036e5