Ticket #6165: 6165-pages.diff
File 6165-pages.diff, 1.6 KB (added by , 17 years ago) |
---|
-
wp-admin/edit-pages.php
34 34 $title = __('Pages'); 35 35 $parent_file = 'edit.php'; 36 36 wp_enqueue_script('admin-forms'); 37 if ( 1 == $_GET['c'] )38 wp_enqueue_script( 'admin-comments' );39 require_once('admin-header.php');40 37 41 38 $post_stati = array( // array( adj, noun ) 42 39 'publish' => array(__('Published'), __('Published pages'), __('Published (%s)')), … … 54 51 $post_status_q .= '&perm=readable'; 55 52 } 56 53 54 $query_str = "post_type=page&orderby=menu_order title&what_to_show=posts$post_status_q&posts_per_page=-1&posts_per_archive_page=-1&order=asc"; 55 56 $query_str = apply_filters('manage_pages_query', $query_str); 57 wp($query_str); 58 59 if ( is_singular() ) 60 wp_enqueue_script( 'admin-comments' ); 61 require_once('admin-header.php'); 62 57 63 ?> 58 64 <div class="wrap"> 59 65 <form id="posts-filter" action="" method="get"> … … 122 128 <br style="clear:both;" /> 123 129 124 130 <?php 125 $query_str = "post_type=page&orderby=menu_order title&what_to_show=posts$post_status_q&posts_per_page=-1&posts_per_archive_page=-1&order=asc";126 131 127 $query_str = apply_filters('manage_pages_query', $query_str);128 wp($query_str);129 130 132 $all = !( $h2_search || $post_status_q ); 131 133 132 134 if ($posts) { … … 164 166 165 167 <?php 166 168 167 if ( 1 == count($posts) && is set( $_GET['page_id']) ) :169 if ( 1 == count($posts) && is_singular() ) : 168 170 169 171 $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved != 'spam' ORDER BY comment_date"); 170 172 if ( $comments ) :