Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#3166 closed defect (bug) (fixed)

wp_redirect should output correct status headers

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

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 20 years ago.

Download all attachments as: .zip

Change History (8)

#1 @leflo
20 years ago

  • Keywords has-patch added

#2 @ryan
20 years ago

  • Resolutionfixed
  • Status newclosed

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

#3 @ryan
20 years ago

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

#4 @ryan
20 years ago

  • Milestone 2.12.0.5
  • Version2.0.4

#6 @leflo
20 years ago

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

#7 @(none)
20 years ago

  • Milestone 2.0.5

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.