Make WordPress Core

Changeset 10042


Ignore:
Timestamp:
12/04/2008 08:26:05 PM (16 years ago)
Author:
westi
Message:

Fix Notice on comment posting.

File:
1 edited

Legend:

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

    r9808 r10042  
    422422    }
    423423
    424     if ( $userdata && ( $user_id == $post_author || $user->has_cap('moderate_comments') ) ) {
     424    if ( isset($userdata) && ( $user_id == $post_author || $user->has_cap('moderate_comments') ) ) {
    425425        // The author and the admins get respect.
    426426        $approved = 1;
Note: See TracChangeset for help on using the changeset viewer.