Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/18/2010 09:18:57 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Refactor 'new_wire_post' and rename to 'activity_update' for consistency. Some AJAX filters renamed to prevent "_activity_activity_update" naming issues due to refactoring. Actual 'new_wire_post' filter type moved to backpat Wire component.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-templatetags.php

    r2291 r2344  
    125125        'user_id' => false, // user_id to filter on
    126126        'object' => false, // object to filter on e.g. groups, profile, status, friends
    127         'action' => false, // action to filter on e.g. new_wire_post, new_forum_post, profile_updated
     127        'action' => false, // action to filter on e.g. activity_update, new_forum_post, profile_updated
    128128        'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
    129129        'secondary_id' => false, // secondary object ID to filter on e.g. a post_id
     
    733733            $title = substr( $title, 0, -1 );
    734734
    735         if ( 'new_wire_post' == $activities_template->activity->component_action ) {
     735        if ( 'activity_update' == $activities_template->activity->component_action ) {
    736736            $content = explode( '<div class="activity-inner">', $activities_template->activity->content );
    737737            $title .= ': ' . strip_tags( bp_create_excerpt( $content[1], 15 ));
Note: See TracChangeset for help on using the changeset viewer.