[buddypress-trac] [BuddyPress Trac] #8966: Improve `bp_core_get_upload_dir()`

buddypress-trac noreply at wordpress.org
Thu Aug 3 05:23:25 UTC 2023


#8966: Improve `bp_core_get_upload_dir()`
--------------------------+---------------------
 Reporter:  imath         |       Owner:  imath
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  12.0.0
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13541" 13541]:
 {{{
 #!CommitTicketReference repository="" revision="13541"
 Improve the function to get the Avatar uploads path and url

 Update the `bp_core_get_upload_dir()` function so that it rightly uses the
 `bp_upload_dir()` one. The latter is returning `false` when an error
 occured while WordPress tried to set the site's `uploads` directory
 instead of an array containing an `error` key.

 Props fawp

 Fixes #8966
 Closes https://github.com/buddypress/buddypress/pull/147
 }}}

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


More information about the buddypress-trac mailing list