WordPress.org

Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3166 closed defect (bug) (fixed)

wp_redirect should output correct status headers

Reported by: leflo Owned by:
Milestone: Priority: low
Severity: normal Version: 2.0.4
Component: General Keywords: wp_redirect, has-patch
Focuses: Cc:

Description

If wp_redirect() is called after wp() it only sets the "Location: .." header, yet the HTTP status code is set to 200 (or 404) by WP::handle_404 ().

http://comox.textdrive.com/pipermail/wp-hackers/2006-September/008695.html

Attachments (1)

wp_redirect_fix.diff (730 bytes) - added by leflo 14 years ago.

Download all attachments as: .zip

Change History (8)

#1 @leflo
14 years ago

  • Keywords has-patch added

#2 @ryan
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4252]) Send 302 on redirect. Props leflo. fixes #3166

#3 @ryan
14 years ago

(In [4253]) Send 302 on redirect. Props leflo. fixes #3166

#4 @ryan
14 years ago

  • Milestone changed from 2.1 to 2.0.5
  • Version set to 2.0.4

#6 @leflo
14 years ago

No, won't fix anything where wp_redirect isn't called.

#7 @(none)
14 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.