Changeset 28424
- Timestamp:
- 05/15/2014 06:10:21 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r28053 r28424 609 609 } 610 610 611 extract($cookie_elements, EXTR_OVERWRITE); 612 613 $expired = $expiration; 611 $scheme = $cookie_elements['scheme']; 612 $username = $cookie_elements['username']; 613 $hmac = $cookie_elements['hmac']; 614 $expired = $expiration = $cookie_elements['expiration']; 614 615 615 616 // Allow a grace period for POST and AJAX requests 616 if ( defined('DOING_AJAX') || 'POST' == $_SERVER['REQUEST_METHOD'] ) 617 if ( defined('DOING_AJAX') || 'POST' == $_SERVER['REQUEST_METHOD'] ) { 617 618 $expired += HOUR_IN_SECONDS; 619 } 618 620 619 621 // Quick check to see if an honest cookie has expired … … 660 662 } 661 663 662 if ( $expiration < time() ) // AJAX/POST grace period set above664 if ( $expiration < time() ) {// AJAX/POST grace period set above 663 665 $GLOBALS['login_grace_period'] = 1; 666 } 664 667 665 668 /**
Note: See TracChangeset
for help on using the changeset viewer.