Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#17321 closed defect (bug) (fixed)

small change: pass int to wp_redirect

Reported by: niallkennedy's profile niallkennedy Owned by: nacin's profile nacin
Milestone: 3.2 Priority: normal
Severity: normal Version:
Component: Query Keywords: has-patch
Focuses: Cc:


wp_redirect expects an integer value for the "status" variable. The wp_redirect function passes the variable to PHP's header() function, which also expects an integer.

Pass an integer value instead of a string in WP Query.

Attachments (1)

query.diff (359 bytes) - added by niallkennedy 13 years ago.
integer instead of string

Download all attachments as: .zip

Change History (3)

13 years ago

integer instead of string

#1 @nacin
13 years ago

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

In [17810]:

Use int for redirect code. props niallkennedy, fixes #17321.

#2 @ocean90
13 years ago

  • Milestone changed from Awaiting Review to 3.2
Note: See TracTickets for help on using tickets.