Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/21/2012 08:12:29 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Simplify favorites link logic and output, to match subscriptions link functionality. Fixes #2118.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/default/bbpress-functions.php

    r4576 r4615  
    301301        }
    302302
     303        // Put subscription attributes in convenient array
     304        $attrs = array(
     305            'topic_id' => $topic->ID,
     306            'user_id'  => $user_id
     307        );
     308
    303309        // Action succeeded
    304         bbp_ajax_response( true, bbp_get_user_favorites_link( array(), array(), $user_id, $id, false ), 200 );
     310        bbp_ajax_response( true, bbp_get_user_favorites_link( $attrs, $user_id, false ), 200 );
    305311    }
    306312
Note: See TracChangeset for help on using the changeset viewer.