Skip to content

Commit

Permalink
Add a proper exit() call after the header()
Browse files Browse the repository at this point in the history
Attempted to use this plugin without the exit() and WP continued to render
without the browser getting the Location() header.  This forces the
header() call to work as no additional response is returned to the browser.
  • Loading branch information
tswicegood committed May 30, 2009
1 parent 7e25b57 commit ec624a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions revcanonical.php 100755 → 100644
Expand Up @@ -47,6 +47,7 @@ function revcanonical_do_redirect()
$id = substr($rq, 1, strlen($rq));
if ($id != '' && $pl = revcanonical_unshorten($id)) {
header('Location: '.$pl, true, 301);
exit;
}
}

Expand Down

0 comments on commit ec624a8

Please sign in to comment.