WordPress.org

Make WordPress Core

Changeset 9541


Ignore:
Timestamp:
11/06/2008 02:05:59 AM (10 years ago)
Author:
ryan
Message:

notice fixes

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r9518 r9541  
    518518    if ( empty($status) )
    519519        die('1');
    520     elseif ( in_array($status->post_status, array('draft', 'pending') ) )
    521         die( __('Error: you are replying to comment on a draft post.') );
     520    elseif ( in_array($status, array('draft', 'pending') ) )
     521        die( __('Error: you are replying to a comment on a draft post.') );
    522522
    523523    $user = wp_get_current_user();
  • trunk/wp-includes/comment.php

    r9522 r9541  
    850850    if ( ! isset($user_id) )
    851851        $user_id = 0;
     852    if ( ! isset($comment_type) )
     853        $comment_type = '';
    852854
    853855    $result = $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->comments
Note: See TracChangeset for help on using the changeset viewer.