Ticket #18372: pluggable.php.patch
| File pluggable.php.patch, 635 bytes (added by , 15 years ago) |
|---|
-
wp-includes/pluggable.php
783 783 function is_user_logged_in() { 784 784 $user = wp_get_current_user(); 785 785 786 if ( $user->id == 0 )786 if ( !isset($user) || $user->id == 0 ) 787 787 return false; 788 788 789 789 return true; … … 1334 1334 */ 1335 1335 function wp_create_nonce($action = -1) { 1336 1336 $user = wp_get_current_user(); 1337 1338 if (isset($user)) { 1337 1339 $uid = (int) $user->id; 1340 } 1341 else { 1342 $uid = 0; 1343 } 1338 1344 1339 1345 $i = wp_nonce_tick(); 1340 1346