Changeset 7248
- Timestamp:
- 03/11/2008 08:26:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-pages.php
r7184 r7248 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 ) … … 54 51 $post_status_q .= '&perm=readable'; 55 52 } 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'); 56 62 57 63 ?> … … 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 127 $query_str = apply_filters('manage_pages_query', $query_str);128 wp($query_str);129 131 130 132 $all = !( $h2_search || $post_status_q ); … … 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");
Note: See TracChangeset
for help on using the changeset viewer.