Opened 3 years ago
Closed 3 years ago
#8764 closed task (fixed)
Improve Activity/Group Activity function to post updates
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 11.0.0 | Priority: | high |
| Severity: | normal | Version: | |
| Component: | Activity | Keywords: | has-patch |
| Cc: |
Description
Working on the BP Attachments Add-on (see this merged 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.
Change History (2)
Note: See
TracTickets for help on using
tickets.
This change is required for the BP Attachments Add-on to be able to simply use a media as the Activity content.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/8764