[buddypress-trac] [BuddyPress Trac] #7097: Invalid array data inside bp_attachments_uploads_dir_get()

buddypress-trac noreply at wordpress.org
Sun May 29 07:36:23 UTC 2016


#7097: Invalid array data inside bp_attachments_uploads_dir_get()
------------------------------+-----------------------------
 Reporter:  tw2113            |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Component - Core  |    Version:
 Severity:  normal            |   Keywords:
------------------------------+-----------------------------
 In the ```bp_attachments_uploads_dir_get``` function, we attempt to
 iterate over ```$upload_data```. However, that variable is only created
 via return value from ```bp_upload_dir()``` which only returns a string.
 Because of this, there will never be a valid value to do a foreach over.

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


More information about the buddypress-trac mailing list