[buddypress-trac] [BuddyPress Trac] #6141: Post types activities are not set when using Ajax

buddypress-trac noreply at wordpress.org
Mon Jan 19 18:09:15 UTC 2015


#6141: Post types activities are not set when using Ajax
--------------------------+-----------------------
 Reporter:  imath         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  2.2
Component:  Activity      |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 To reproduce, put the following code in a bp-custom.php file :
 {{{
 add_post_type_support( 'page', 'buddypress-activity' );
 }}}

 Post a page, then find the corresponding activity in the database and
 remove the content or edit the action field.
 Go to the activity directory, you should see "username wrote a new item"
 whatever you edited in the db action field.
 If you filter the stream to list Pages, you'll have the content you edited
 (or nothing if you removed the action string) in the db action field.

 Since activity action strings are generated at run time, the format
 callback should always be available even when doing Ajax.

 So i suggest the attached patch to solve the issue.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6141>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list