Ticket #15459: 15459.diff
File 15459.diff, 2.7 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/post.php
838 838 * @return array 839 839 */ 840 840 function wp_edit_posts_query( $q = false ) { 841 global $wp_query; 842 841 843 if ( false === $q ) 842 844 $q = $_GET; 843 845 $q['m'] = isset($q['m']) ? (int) $q['m'] : 0; … … 882 884 $query['order'] = 'asc'; 883 885 $query['posts_per_page'] = -1; 884 886 $query['posts_per_archive_page'] = -1; 887 $query['fields'] = 'id=>parent'; 885 888 } 886 889 887 890 if ( ! empty( $q['show_sticky'] ) ) 888 891 $query['post__in'] = (array) get_option( 'sticky_posts' ); 889 892 890 893 wp( $query ); 894 $wp_query->post_count = count( $wp_query->posts ); 891 895 892 896 return $avail_post_stati; 893 897 } -
wp-admin/includes/class-wp-posts-list-table.php
434 434 $my_parents = array(); 435 435 $my_parent = $page->post_parent; 436 436 while ( $my_parent ) { 437 $my_parent = get_post( $my_parent );437 $my_parent = get_post( $my_parent->ID ); 438 438 $my_parents[] = $my_parent; 439 439 if ( !$my_parent->post_parent ) 440 440 break; … … 464 464 465 465 $global_post = $post; 466 466 $post = $a_post; 467 $post = get_post( $post->ID ); 467 468 setup_postdata( $post ); 468 469 469 470 $edit_link = get_edit_post_link( $post->ID ); … … 753 754 <?php if ( !$bulk ) : ?> 754 755 <label><span class="title"><?php _e( 'Date' ); ?></span></label> 755 756 <div class="inline-edit-date"> 756 <?php touch_time( 1, 1, 4, 1 ); ?>757 <?php touch_time( 1, 0, 4, 1 ); ?> 757 758 </div> 758 759 <br class="clear" /> 759 760 <?php endif; // $bulk -
wp-includes/class-wp.php
25 25 * @since 2.0.0 26 26 * @var array 27 27 */ 28 var $private_query_vars = array('offset', 'posts_per_page', 'posts_per_archive_page', 'showposts', 'nopaging', 'post_type', 'post_status', 'category__in', 'category__not_in', 'category__and', 'tag__in', 'tag__not_in', 'tag__and', 'tag_slug__in', 'tag_slug__and', 'tag_id', 'post_mime_type', 'perm', 'comments_per_page', 'post__in', 'post__not_in' );28 var $private_query_vars = array('offset', 'posts_per_page', 'posts_per_archive_page', 'showposts', 'nopaging', 'post_type', 'post_status', 'category__in', 'category__not_in', 'category__and', 'tag__in', 'tag__not_in', 'tag__and', 'tag_slug__in', 'tag_slug__and', 'tag_id', 'post_mime_type', 'perm', 'comments_per_page', 'post__in', 'post__not_in', 'fields' ); 29 29 30 30 /** 31 31 * Extra query variables set by the user.