Re: Redirect to last page after signin
Ah it looks like that code is for bbPress… it has a reference to bb_get_option in it:
<input type=”hidden” name=”re” value=”<?php echo “http://”.$_SERVER.$_SERVER[“REQUEST_URI”].’?’.$_SERVER[“QUERY_STRING”]; ?>” />
<input type=”hidden” name=”_wp_http_referer” value=”<?php echo bb_get_option( ‘uri’ ) ?>” />
If I stick it into a WordPress template for my header.php file, it crashes… any ideas how to make it work in WordPress?