WordPress.org

Make WordPress Core

Ticket #11401: 11401-admin-ajax-reply-trash-option-2.diff

File 11401-admin-ajax-reply-trash-option-2.diff, 457 bytes (added by nacin, 5 years ago)

No new strings, but an inaccurate response

  • admin-ajax.php

     
    708708 
    709709        if ( empty($status) ) 
    710710                die('1'); 
    711         elseif ( in_array($status, array('draft', 'pending') ) ) 
     711        elseif ( in_array($status, array('draft', 'pending', 'trash') ) ) 
    712712                die( __('Error: you are replying to a comment on a draft post.') ); 
    713713 
    714714        $user = wp_get_current_user();