Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 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:

Description

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.
http://core.trac.wordpress.org/browser/tags/3.1.2/wp-includes/pluggable.php#L873

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

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

@niallkennedy
14 years ago

integer instead of string

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

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