Make WordPress Core

Changeset 12391


Ignore:
Timestamp:
12/13/2009 05:32:14 PM (14 years ago)
Author:
westi
Message:

Restore the check for trueness on $user_id so we don't run the queries or create the objects. Fixes #11419 props Denis-de-Bernardy.

File:
1 edited

Legend:

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

    r12389 r12391  
    507507    do_action( 'check_comment_flood', $comment_author_IP, $comment_author_email, $comment_date_gmt );
    508508
    509     if ( isset($user_id) ) {
     509    if ( isset($user_id) && $user_id) {
    510510        $userdata = get_userdata($user_id);
    511511        $user = new WP_User($user_id);
Note: See TracChangeset for help on using the changeset viewer.