Skip to:
Content

BuddyPress.org

Changeset 2344 for trunk/bp-activity.php


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.php

    r2343 r2344  
    396396         *  'user_id' => false, // user_id to filter on
    397397         *  'object' => false, // object to filter on e.g. groups, profile, status, friends
    398          *  'action' => false, // action to filter on e.g. new_wire_post, profile_updated
     398         *  'action' => false, // action to filter on e.g. activity_update, profile_updated
    399399         *  'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
    400400         *  'secondary_id' => false, // secondary object ID to filter on e.g. a post_id
     
    435435        'primary_link' => false, // The primary URL for this item in RSS feeds
    436436        'component_name' => false, // The name/ID of the component e.g. groups, profile, mycomponent
    437         'component_action' => false, // The component action e.g. new_wire_post, profile_updated
     437        'component_action' => false, // The component action e.g. activity_update, profile_updated
    438438
    439439        'user_id' => $bp->loggedin_user->id, // Optional: The user to record the activity for, can be false if this activity is not for a user.
     
    502502        'primary_link' => apply_filters( 'bp_activity_new_update_primary_link', $primary_link ),
    503503        'component_name' => $bp->activity->id,
    504         'component_action' => 'new_wire_post'
     504        'component_action' => 'activity_update'
    505505    ) );
    506506
Note: See TracChangeset for help on using the changeset viewer.