[buddypress-trac] [BuddyPress Trac] #8254: Undefined `$current_blog` in function `bp_core_delete_existing_avatar`

buddypress-trac noreply at wordpress.org
Tue Mar 3 01:53:58 UTC 2020


#8254: Undefined `$current_blog` in function `bp_core_delete_existing_avatar`
--------------------------+-----------------------
 Reporter:  itowhid06     |       Owner:  imath
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  6.0.0
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by itowhid06):

 Yes, that is better. Using $current_blog should be avoided in all possible
 cases, and I just created the patch to keep similarity with other usages.
 +1 to
 https://buddypress.trac.wordpress.org/attachment/ticket/8254/8254.2.patch.
 Replying to [comment:4 imath]:
 > I believe it's best to use the function `get_current_blog_id()`. What do
 you think ?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8254#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list