[buddypress-trac] [BuddyPress] #4948: bp_core_avatar_url() wonky in sub-sites since WP 3.5
buddypress-trac
noreply at wordpress.org
Tue Apr 23 12:51:27 UTC 2013
#4948: bp_core_avatar_url() wonky in sub-sites since WP 3.5
--------------------------+--------------------
Reporter: r-a-y | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 1.7.1
Component: Core | Version: 1.6.4
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Comment (by boonebgorges):
Thanks, r-a-y. The technique looks good.
I suggest that instead of the first block, we just do:
{{{
if ( is_multisite() ) {
switch_to_blog( bp_get_root_blog_id() );
}
}}}
`switch_to_blog()` bails if we attempt to switch to the current blog, so
the BP-level check is redundant.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4948#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list