Changeset 7247
- Timestamp:
- 03/11/2008 08:10:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r7184 r7247 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 41 list($post_stati, $avail_post_stati) = wp_edit_posts_query();42 43 43 44 if ( !isset( $_GET['paged'] ) ) … … 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 … … 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");
Note: See TracChangeset
for help on using the changeset viewer.