Changeset 4495 for trunk/wp-includes/pluggable.php
- Timestamp:
- 11/19/2006 07:56:05 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/pluggable.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r4432 r4495 47 47 return; 48 48 49 if ( empty($_COOKIE[USER_COOKIE]) || empty($_COOKIE[PASS_COOKIE]) || 49 if ( empty($_COOKIE[USER_COOKIE]) || empty($_COOKIE[PASS_COOKIE]) || 50 50 !wp_login($_COOKIE[USER_COOKIE], $_COOKIE[PASS_COOKIE], true) ) { 51 51 wp_set_current_user(0); … … 213 213 function auth_redirect() { 214 214 // Checks if a user is logged in, if not redirects them to the login page 215 if ( (!empty($_COOKIE[USER_COOKIE]) && 215 if ( (!empty($_COOKIE[USER_COOKIE]) && 216 216 !wp_login($_COOKIE[USER_COOKIE], $_COOKIE[PASS_COOKIE], true)) || 217 217 (empty($_COOKIE[USER_COOKIE])) ) { … … 332 332 function wp_notify_postauthor($comment_id, $comment_type='') { 333 333 global $wpdb; 334 334 335 335 $comment = get_comment($comment_id); 336 336 $post = get_post($comment->comment_post_ID); … … 379 379 if ( '' != $comment->comment_author_email ) 380 380 $reply_to = "Reply-To: $comment->comment_author_email"; 381 } else {381 } else { 382 382 $from = "From: \"$comment->comment_author\" <$wp_email>"; 383 383 if ( '' != $comment->comment_author_email ) 384 384 $reply_to = "Reply-To: \"$comment->comment_author_email\" <$comment->comment_author_email>"; 385 }385 } 386 386 387 387 $message_headers = "MIME-Version: 1.0\n" … … 440 440 441 441 @wp_mail($admin_email, $subject, $notify_message); 442 442 443 443 return true; 444 444 } … … 490 490 491 491 $i = ceil(time() / 43200); 492 492 493 493 return substr(wp_hash($i . $action . $uid), -12, 10); 494 494 }
Note: See TracChangeset
for help on using the changeset viewer.