Adjust syntax

This commit is contained in:
Mike Jolley 2015-02-23 11:45:34 +00:00
parent faf8360c70
commit 2657ed251c
1 changed files with 1 additions and 2 deletions

View File

@ -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,