[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 08:11:34 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        |   Keywords:  has-patch
--------------------------+-----------------------
 WP 3.5 changed a number of things relating to uploads.

 1. Changes to `wp_upload_dir()` in multisite - see #WP19235.  In
 particular, see [WP22222].
 2. On brand-new 3.5 installs, WP does not populate the `'upload_path'` DB
 option as in previous WP versions.

 Point no. 2 will cause `bp_core_avatar_url()` to generate the wrong URL
 when you're using multisite and you're not on the BP root blog:
 https://buddypress.trac.wordpress.org/browser/tags/1.7/bp-core/bp-core-
 avatars.php#L867

 To solve this, 01.patch mirrors the changes in r5897 that were made to the
 `bp_core_avatar_upload_path()` function for `bp_core_avatar_url()`.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4948>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list