[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 19:12:12 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 r-a-y):

 In 02.patch, I've created a new function - `bp_core_get_upload_dir()` to
 grab the `wp_upload_dir()` data and cache it since we were using it in
 both `bp_core_avatar_url()` and `bp_core_avatar_upload_path()`.  This was
 done to prevent using `switch_to_blog()` more than once on a page load.

 This function is then used in those respective functions to get their
 values.

 Let me know what you think.

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


More information about the buddypress-trac mailing list