diff --git a/includes/admin/class-wc-admin-post-types.php b/includes/admin/class-wc-admin-post-types.php index b11bcba8a1b..8ca6e5a1927 100644 --- a/includes/admin/class-wc-admin-post-types.php +++ b/includes/admin/class-wc-admin-post-types.php @@ -536,8 +536,7 @@ class WC_Admin_Post_Types { if ( $post->comment_count ) { // check the status of the post - ( $post->post_status !== 'trash' ) ? $status = '' : $status = 'post-trashed'; - + $status = ( 'trash' !== $post->post_status ) ? '' : 'post-trashed'; $latest_notes = get_comments( array( 'post_id' => $post->ID, 'number' => 1,