@@ -303,7 +301,6 @@ function post_tags_meta_box($post, $box) {
labels->parent_item_colon; ?>
$taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —', 'tab_index' => 3 ) ); ?>
-
+
@@ -369,7 +366,6 @@ function post_categories_meta_box( $post, $box ) {
+
+ get_var($wpdb->prepare("SELECT count(1) FROM $wpdb->comments WHERE comment_post_ID = '%d' AND ( comment_approved = '0' OR comment_approved = '1')", $post_ID));
+ $wp_list_table = _get_list_table('WP_Post_Comments_List_Table');
+ $wp_list_table->display( true );
if ( 1 > $total ) {
- echo '
' . __('No comments yet.') . '
';
- return;
+ echo '';
+ } else {
+ $hidden = get_hidden_meta_boxes('post');
+ if ( ! in_array('commentsdiv', $hidden) ) {
+ ?>
+
+
+
+ display( true );
-?>
-
-
-
-
-
@@ -639,7 +632,7 @@ function link_submit_meta_box($link) {
@@ -658,7 +651,6 @@ if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('m
-
-
-