Changeset 5164
- Timestamp:
- 11/23/2013 10:07:51 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/forums/template.php
r5157 r5164 819 819 $retval = false; 820 820 821 // Parse the arguments 822 $r = bbp_parse_args( $args, array( 823 'forum_id' => 0, 824 'user_id' => 0, 825 'before' => '', 826 'after' => '', 827 'subscribe' => __( 'Subscribe', 'bbpress' ), 828 'unsubscribe' => __( 'Unsubscribe', 'bbpress' ) 829 ), 'get_forum_subscribe_link' ); 830 831 // Get the link 832 $retval = bbp_get_user_subscribe_link( $r ); 821 // No link for categories until we support subscription hierarchy 822 // @see http://bbpress.trac.wordpress.org/ticket/2475 823 if ( ! bbp_is_forum_category() ) { 824 825 // Parse the arguments 826 $r = bbp_parse_args( $args, array( 827 'forum_id' => 0, 828 'user_id' => 0, 829 'before' => '', 830 'after' => '', 831 'subscribe' => __( 'Subscribe', 'bbpress' ), 832 'unsubscribe' => __( 'Unsubscribe', 'bbpress' ) 833 ), 'get_forum_subscribe_link' ); 834 835 // Get the link 836 $retval = bbp_get_user_subscribe_link( $r ); 837 } 833 838 834 839 return apply_filters( 'bbp_get_forum_subscribe_link', $retval, $r );
Note: See TracChangeset
for help on using the changeset viewer.