Skip to:
Content

BuddyPress.org

Changeset 1908


Ignore:
Timestamp:
09/21/2009 07:43:14 PM (17 years ago)
Author:
apeatling
Message:

Removing backwards compatibility code from activity loop since 1.0.3 templates had explicit parameters passed. Fixes #1047

File:
1 edited

Legend:

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

    r1905 r1908  
    112112}
    113113
    114 function bp_activity_get_list( $user_id, $title, $no_activity, $limit = false ) {
    115         global $bp_activity_user_id, $bp_activity_limit, $bp_activity_title, $bp_activity_no_activity;
    116        
    117         $bp_activity_user_id = $user_id;
    118         $bp_activity_limit = $limit;
    119         $bp_activity_title = $title;
    120         $bp_activity_no_activity = $no_activity;
    121        
    122         locate_template( array( '/activity/activity-list.php' ), true );
    123 }
    124 
    125114function bp_has_activities( $args = '' ) {
    126         global $bp, $activities_template, $bp_activity_user_id, $bp_activity_limit;
     115        global $bp, $activities_template;
    127116       
    128117        /* Note: any params used for filtering can be a single value, or multiple values comma seperated. */
     
    141130        $r = wp_parse_args( $args, $defaults );
    142131        extract( $r, EXTR_SKIP );
    143        
    144         // The following lines are for backwards template compatibility.
    145         if ( 'my-friends' == $bp->current_action && $bp->activity->slug == $bp->current_component )
    146                 $type = 'friends';
    147        
    148         if ( $bp->displayed_user->id && $bp->activity->slug == $bp->current_component && ( !$bp->current_action || 'just-me' == $bp->current_action ) )
    149                 $type = 'personal';
    150        
    151         if ( $bp->displayed_user->id && $bp->profile->slug == $bp->current_component )
    152                 $type = 'personal';
    153 
    154         if ( $bp_activity_limit )
    155                 $max = $bp_activity_limit;
    156 
    157         // END backwards compatibility ---
    158132
    159133        if ( ( 'personal' == $type || 'friends' == $type ) && !$user_id )
Note: See TracChangeset for help on using the changeset viewer.