WordPress.org

Make WordPress Core

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

File 11401-admin-ajax-reply-trash-option-1.diff, 505 bytes (added by nacin, 6 years ago)

Adds a new string

  • admin-ajax.php

     
    710710                die('1'); 
    711711        elseif ( in_array($status, array('draft', 'pending') ) ) 
    712712                die( __('Error: you are replying to a comment on a draft post.') ); 
     713        elseif ( in_array($status, array('trash') ) ) 
     714                die( __('Error: you are replying to a comment on a trashed post.') ); 
    713715 
    714716        $user = wp_get_current_user(); 
    715717        if ( $user->ID ) {