WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

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

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 3 years ago.
integer instead of string

Download all attachments as: .zip

Change History (3)

niallkennedy3 years ago

integer instead of string

comment:1 nacin3 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.

comment:2 ocean903 years ago

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