WordPress.org

Make WordPress Core

Changeset 13937


Ignore:
Timestamp:
04/02/2010 05:01:13 AM (8 years ago)
Author:
nacin
Message:

Fix notice in wp_new_comment(). fixes #10854.

File:
1 edited

Legend:

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

    r13829 r13937  
    12761276
    12771277        if ( get_option('comments_notify') && $commentdata['comment_approved'] && ( ! isset( $commentdata['user_id'] ) || $post->post_author != $commentdata['user_id'] ) )
    1278             wp_notify_postauthor($comment_ID, $commentdata['comment_type']);
     1278            wp_notify_postauthor($comment_ID, empty( $commentdata['comment_type'] ) ? $commentdata['comment_type'] : '' );
    12791279    }
    12801280
Note: See TracChangeset for help on using the changeset viewer.