[buddypress-trac] [BuddyPress Trac] #6591: Wrong parameter value for upload_dir filter in BP Attachment API

buddypress-trac noreply at wordpress.org
Tue Oct 6 23:53:33 UTC 2015


#6591: Wrong parameter value for upload_dir filter in BP Attachment API
-------------------------------------+---------------------
 Reporter:  rittesh.patel            |       Owner:  imath
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  2.4
Component:  Component - Attachments  |     Version:  2.3.0
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch commit         |
-------------------------------------+---------------------
Changes (by imath):

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


Comment:

 In [changeset:"10194"]:
 {{{
 #!CommitTicketReference repository="" revision="10194"
 Allow class extending the `BP_Attachment` class to get the original
 WordPress upload dir within their `upload_dir_filter()` method.

 To do so, you simply need to add the argument `$upload_dir_filter_args` to
 the array you use inside your constructor and set it to 1.

 Props rittesh.patel

 Fixes #6591
 }}}

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


More information about the buddypress-trac mailing list