Changeset 45590 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 07/02/2019 11:41:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r45568 r45590 218 218 219 219 // Headers 220 $cc = $bcc = $reply_to = array(); 220 $cc = array(); 221 $bcc = array(); 222 $reply_to = array(); 221 223 222 224 if ( empty( $headers ) ) { … … 596 598 */ 597 599 function wp_validate_auth_cookie( $cookie = '', $scheme = '' ) { 598 if ( ! $cookie_elements = wp_parse_auth_cookie( $cookie, $scheme ) ) { 600 $cookie_elements = wp_parse_auth_cookie( $cookie, $scheme ); 601 if ( ! $cookie_elements ) { 599 602 /** 600 603 * Fires if an authentication cookie is malformed. … … 610 613 } 611 614 612 $scheme = $cookie_elements['scheme']; 613 $username = $cookie_elements['username']; 614 $hmac = $cookie_elements['hmac']; 615 $token = $cookie_elements['token']; 616 $expired = $expiration = $cookie_elements['expiration']; 615 $scheme = $cookie_elements['scheme']; 616 $username = $cookie_elements['username']; 617 $hmac = $cookie_elements['hmac']; 618 $token = $cookie_elements['token']; 619 $expired = $cookie_elements['expiration']; 620 $expiration = $cookie_elements['expiration']; 617 621 618 622 // Allow a grace period for POST and Ajax requests … … 1037 1041 $scheme = apply_filters( 'auth_redirect_scheme', '' ); 1038 1042 1039 if ( $user_id = wp_validate_auth_cookie( '', $scheme ) ) { 1043 $user_id = wp_validate_auth_cookie( '', $scheme ); 1044 if ( $user_id ) { 1040 1045 /** 1041 1046 * Fires before the authentication redirect. … … 1381 1386 1382 1387 // In php 5 parse_url may fail if the URL query part contains http://, bug #38143 1383 $test = ( $cut = strpos( $location, '?' ) ) ? substr( $location, 0, $cut ) : $location; 1388 $cut = strpos( $location, '?' ); 1389 $test = $cut ? substr( $location, 0, $cut ) : $location; 1384 1390 1385 1391 // @-operator is used to prevent possible warnings in PHP < 5.3.3.
Note: See TracChangeset
for help on using the changeset viewer.