[buddypress-trac] [BuddyPress Trac] #6569: Let's give post-form.php the love

buddypress-trac noreply at wordpress.org
Thu Aug 6 21:48:25 UTC 2015


#6569: Let's give post-form.php the love
----------------------------------------+------------------
 Reporter:  modemlooper                 |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  2.4
Component:  Appearance - Template Pack  |     Version:  1.2
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch                   |
----------------------------------------+------------------

Comment (by modemlooper):

 So, getting the extra form data in post submit is great but there is
 nothing you can do with it.

 bp_activity_add() uses bp_parse_args and you can push meta to this but
 then the save args will strip off anything extra.

 action hook bp_activity_add only passes you back the original args and not
 to activity object so you can't attach any of the data to the newly
 created item.

 I propose we pass back the activity object

 ```do_action( 'bp_activity_add', $r, $activity );```

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


More information about the buddypress-trac mailing list