Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/09/2012 07:40:57 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Do not stomp the $redirect_to variable in bbp_redirect_to_field(). Props mesayre. Fixes #1709.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-common-template.php

    r3643 r3656  
    856856
    857857    // Rejig the $redirect_to
    858     if ( !isset( $_SERVER['REDIRECT_URL'] ) || ( !$redirect_to = home_url( $_SERVER['REDIRECT_URL'] ) ) )
     858    if ( !isset( $_SERVER['REDIRECT_URL'] ) || ( !$redirect_to == home_url( $_SERVER['REDIRECT_URL'] ) ) )
    859859        $redirect_to = wp_get_referer();
    860860
Note: See TracChangeset for help on using the changeset viewer.