From ed8fc607759472573ba1c777cd1e071f05b689a8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 24 May 2013 16:50:50 +0000 Subject: [PATCH] Remove unused variable. props zeo. fixes #24412. git-svn-id: http://core.svn.wordpress.org/trunk@24346 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-comments-list-table.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 148cfd0117..e7ea21218f 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -336,12 +336,6 @@ class WP_Comments_List_Table extends WP_List_Table { $comment_url = esc_url( get_comment_link( $comment->comment_ID ) ); $the_comment_status = wp_get_comment_status( $comment->comment_ID ); - $ptime = date( 'G', strtotime( $comment->comment_date ) ); - if ( ( abs( time() - $ptime ) ) < DAY_IN_SECONDS ) - $ptime = sprintf( __( '%s ago' ), human_time_diff( $ptime ) ); - else - $ptime = mysql2date( __( 'Y/m/d \a\t g:i A' ), $comment->comment_date ); - if ( $user_can ) { $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) ); $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) );