Make WordPress Core


Ignore:
Timestamp:
11/19/2006 07:56:05 AM (20 years ago)
Author:
ryan
Message:

Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r4432 r4495  
    4747                return;
    4848
    49         if ( empty($_COOKIE[USER_COOKIE]) || empty($_COOKIE[PASS_COOKIE]) || 
     49        if ( empty($_COOKIE[USER_COOKIE]) || empty($_COOKIE[PASS_COOKIE]) ||
    5050                !wp_login($_COOKIE[USER_COOKIE], $_COOKIE[PASS_COOKIE], true) ) {
    5151                wp_set_current_user(0);
     
    213213function auth_redirect() {
    214214        // 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]) &&
    216216                                !wp_login($_COOKIE[USER_COOKIE], $_COOKIE[PASS_COOKIE], true)) ||
    217217                         (empty($_COOKIE[USER_COOKIE])) ) {
     
    332332function wp_notify_postauthor($comment_id, $comment_type='') {
    333333        global $wpdb;
    334    
     334
    335335        $comment = get_comment($comment_id);
    336336        $post    = get_post($comment->comment_post_ID);
     
    379379                if ( '' != $comment->comment_author_email )
    380380                        $reply_to = "Reply-To: $comment->comment_author_email";
    381         } else {
     381        } else {
    382382                $from = "From: \"$comment->comment_author\" <$wp_email>";
    383383                if ( '' != $comment->comment_author_email )
    384384                        $reply_to = "Reply-To: \"$comment->comment_author_email\" <$comment->comment_author_email>";
    385         }
     385        }
    386386
    387387        $message_headers = "MIME-Version: 1.0\n"
     
    440440
    441441        @wp_mail($admin_email, $subject, $notify_message);
    442    
     442
    443443        return true;
    444444}
     
    490490
    491491        $i = ceil(time() / 43200);
    492        
     492
    493493        return substr(wp_hash($i . $action . $uid), -12, 10);
    494494}
Note: See TracChangeset for help on using the changeset viewer.