Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/25/2012 08:00:36 AM (14 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/common/functions.php

    r4588 r4655  
    228228
    229229/** Misc **********************************************************************/
     230
     231/**
     232 * Return the unescaped redirect_to request value
     233 *
     234 * @bbPress (r4655)
     235 *
     236 * @return string The URL to redirect to, if set
     237 */
     238function bbp_get_redirect_to() {
     239        $retval = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
     240
     241        return apply_filters( 'bbp_get_redirect_to', $retval );
     242}
    230243
    231244/**
Note: See TracChangeset for help on using the changeset viewer.