[buddypress-trac] [BuddyPress Trac] #8185: Inadequate details availabe on bp_attachments_pre_get_attachment
buddypress-trac
noreply at wordpress.org
Wed Dec 25 08:59:47 UTC 2019
#8185: Inadequate details availabe on bp_attachments_pre_get_attachment
-------------------------+-----------------------------
Reporter: sbrajesh | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 5.0.0
Severity: normal | Keywords: has-patch
-------------------------+-----------------------------
The filter
{{{
bp_attachments_pre_get_attachment
}}}
Does not provide anyway to know which piece of data(is it url or path) is
being fetched.
That renders the hook useless for most use case.
We should pass the $data too with the hook. Here is a patch attached with
the same.
Please let me know if there is a better way to do it.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8185>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list