Make WordPress Core


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

notice fixes

File:
1 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();
Note: See TracChangeset for help on using the changeset viewer.