From 2657ed251c8e4b70af4edad8627e9a554bcdcfad Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 23 Feb 2015 11:45:34 +0000 Subject: [PATCH] Adjust syntax --- includes/admin/class-wc-admin-post-types.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,