WordPress.org

Make WordPress Core

Changeset 12389


Ignore:
Timestamp:
12/13/2009 11:43:19 AM (11 years ago)
Author:
westi
Message:

Check that $user_id is set. For non-logged in users it is not set so we get a notice.

File:
1 edited

Legend:

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

    r12376 r12389  
    507507    do_action( 'check_comment_flood', $comment_author_IP, $comment_author_email, $comment_date_gmt );
    508508
    509     if ( $user_id ) {
     509    if ( isset($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.