[buddypress-trac] [BuddyPress Trac] #8764: Improve Activity/Group Activity function to post updates
buddypress-trac
noreply at wordpress.org
Sat Nov 12 20:54:26 UTC 2022
#8764: Improve Activity/Group Activity function to post updates
----------------------+----------------------
Reporter: imath | Owner: imath
Type: task | Status: assigned
Priority: high | Milestone: 11.0.0
Component: Activity | Version:
Severity: normal | Keywords:
----------------------+----------------------
Working on the BP Attachments Add-on (see this merged
[https://github.com/buddypress/bp-attachments/pull/44 GHPR]) I noticed
that in order to be able to simply attach a media as the content of an
activity from the BP Nouveau Activity Post Form, it was necessary to
improve these three functions:
- `bp_activity_post_update()` so that it uses a filter name when
"bp_parsing_args",
- `groups_post_update()` so that it truly respects the `'error_type' =>
'wp_error'` argument,
- `bp_nouveau_ajax_post_update()` to avoid a check about the
`$_POST['content']` that is already done in the 2 above functions and so
that it uses the `'error_type' => 'wp_error'` argument.
I'll share a PR about these changes asap.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8764>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list