Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#17321 closed defect (bug) (fixed)

small change: pass int to wp_redirect

Reported by: niallkennedy Owned by: 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 5 years ago.
integer instead of string

Download all attachments as: .zip

Change History (3)

5 years ago

integer instead of string

#1 @nacin
5 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
5 years ago

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