Changeset 50842 for trunk/src/wp-includes/Requests/Response.php
- Timestamp:
- 05/11/2021 07:40:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Requests/Response.php
r46586 r50842 52 52 /** 53 53 * Protocol version, false if non-blocking 54 * 54 55 * @var float|boolean 55 56 */ … … 98 99 public function is_redirect() { 99 100 $code = $this->status_code; 100 return in_array($code, array(300, 301, 302, 303, 307) ) || $code > 307 && $code < 400;101 return in_array($code, array(300, 301, 302, 303, 307), true) || $code > 307 && $code < 400; 101 102 } 102 103
Note: See TracChangeset
for help on using the changeset viewer.