[buddypress-trac] [BuddyPress Trac] #7097: Invalid array data inside bp_attachments_uploads_dir_get()
buddypress-trac
noreply at wordpress.org
Mon May 30 12:52:51 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 | Resolution:
Keywords: needs-docs |
------------------------------+------------------------------
Changes (by imath):
* keywords: => needs-docs
Comment:
I think it's a docblock issue. `bp_upload_dir()` returns an associative
array having these keys:
* 'path' - base directory and sub directory or full path to upload
directory.
* 'url' - base url and sub directory or absolute URL to upload directory.
* 'subdir' - sub directory if uploads use year/month folders option is
on.
* 'basedir' - path without subdir.
* 'baseurl' - URL path without subdir.
* 'error' - false or error message.
That's because `bp_upload_dir()` is simply the result of `wp_upload_dir()`
for the root blog id
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7097#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list