[buddypress-trac] [BuddyPress Trac] #6312: post_type_support - ajax changes the activity entry action

buddypress-trac noreply at wordpress.org
Wed Mar 25 08:31:47 UTC 2015


#6312: post_type_support - ajax changes the activity entry action
----------------------------------+-------------------------
 Reporter:  shanebp               |       Owner:  imath
     Type:  defect (bug)          |      Status:  closed
 Priority:  normal                |   Milestone:
Component:  Component - Activity  |     Version:  2.2.1
 Severity:  normal                |  Resolution:  worksforme
 Keywords:  reporter-feedback     |
----------------------------------+-------------------------
Changes (by imath):

 * status:  assigned => closed
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 Hi,

 Did some tests today. I think the whole issue you shared is specific to
 your plugin. I've tested this [https://codex.buddypress.org/plugindev
 /post-types-activities/#customizing-generic-activity-attributes option]
 and it's working fine using AJAX requests.

 I advise you to check your [table_prefix]bp_activity table and make sure
 the component field is consistent with the component you're using when
 registering your post type.

 In the function `bp_activity_generate_action_string()` we are using the
 component saved in database to dynamically build the action string.
 If for some reason you registered 'activity' in the 'bp_activity'
 parameter when using the register_post_type() function and the component
 in DB is set to 'groups', then as the action strings is linked to the
 'activity' component, it doesn't find it for the 'groups' component (which
 is a regular behavior).

 closing this as worksforme feel free to reopen it.

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


More information about the buddypress-trac mailing list