Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/25/2012 08:00:36 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Introduce bbp_get_redirect_to() to handle getting the request variable. Use this new function where appropriate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/topics/functions.php

    r4654 r4655  
    344344
    345345        // Redirect to
    346         $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
     346        $redirect_to = bbp_get_redirect_to();
    347347
    348348        // Get the topic URL
     
    682682
    683683        // Redirect to
    684         $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
     684        $redirect_to = bbp_get_redirect_to();
    685685
    686686        // View all?
Note: See TracChangeset for help on using the changeset viewer.