Changeset 9541 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 11/06/2008 02:05:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r9518 r9541 518 518 if ( empty($status) ) 519 519 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.') ); 522 522 523 523 $user = wp_get_current_user();
Note: See TracChangeset
for help on using the changeset viewer.