Skip to:
Content

Changeset 6728


Ignore:
Timestamp:
10/14/2017 04:00:08 AM (20 months ago)
Author:
johnjamesjacoby
Message:

Allow a custom redirect destination in the reply form.

(Specifically for shortcode or third-party plugin usage.)

See r3450.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/template.php

    r6676 r6728  
    16971697        // Show redirect field if not viewing a specific topic
    16981698        if ( bbp_is_query_name( 'bbp_single_topic' ) ) :
    1699             bbp_redirect_to_field( get_permalink() );
     1699            $redirect_to = apply_filters( 'bbp_reply_form_redirect_to', get_permalink() );
     1700            bbp_redirect_to_field( $redirect_to );
    17001701        endif;
    17011702    endif;
Note: See TracChangeset for help on using the changeset viewer.