[buddypress-trac] [BuddyPress] #4948: bp_core_avatar_url() wonky in sub-sites since WP 3.5
buddypress-trac
noreply at wordpress.org
Tue Apr 30 01:06:42 UTC 2013
#4948: bp_core_avatar_url() wonky in sub-sites since WP 3.5
----------------------------------------+---------------------
Reporter: r-a-y | Owner: r-a-y
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 1.7.1
Component: Core | Version: 1.6.4
Severity: normal | Resolution: fixed
Keywords: has-patch needs-unit-tests |
----------------------------------------+---------------------
Changes (by r-a-y):
* owner: => r-a-y
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"6964"]:
{{{
#!CommitTicketReference repository="" revision="6964"
Introduce bp_core_get_upload_dir().
This function fetches data from the BP root blog's upload directory.
Handy for multisite instances because all uploads are made on the BP root
blog and we need to query the BP root blog for the upload directory data.
This ensures that we only need to use switch_to_blog() once to get what we
need.
Use this function in bp_core_avatar_upload_path() and
bp_core_avatar_url().
Fixes #4948.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4948#comment:9>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list