Ticket #6165: 6165.b.diff
File 6165.b.diff, 1.3 KB (added by , 17 years ago) |
---|
-
wp-admin/edit.php
34 34 $title = __('Posts'); 35 35 $parent_file = 'edit.php'; 36 36 wp_enqueue_script('admin-forms'); 37 if ( 1 == $_GET['c'] ) 37 38 list($post_stati, $avail_post_stati) = wp_edit_posts_query(); 39 40 if ( 1 == count($posts) && is_singular() ) 38 41 wp_enqueue_script( 'admin-comments' ); 39 42 require_once('admin-header.php'); 40 43 41 list($post_stati, $avail_post_stati) = wp_edit_posts_query();42 43 44 if ( !isset( $_GET['paged'] ) ) 44 45 $_GET['paged'] = 1; 45 46 … … 139 140 <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" /> 140 141 <?php wp_nonce_field('bulk-posts'); ?> 141 142 <?php 142 if ( !is set( $_GET['p']) ) {143 if ( !is_singular() ) { 143 144 $arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'post' ORDER BY post_date DESC"; 144 145 145 146 $arc_result = $wpdb->get_results( $arc_query ); … … 195 196 196 197 <?php 197 198 198 if ( 1 == count($posts) && is set( $_GET['p']) ) :199 if ( 1 == count($posts) && is_singular() ) : 199 200 200 201 $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved != 'spam' ORDER BY comment_date"); 201 202 if ( $comments ) :