Ticket #18848: 18848.2.patch
File 18848.2.patch, 2.1 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/post.php
887 887 $query['order'] = 'asc'; 888 888 $query['posts_per_page'] = -1; 889 889 $query['posts_per_archive_page'] = -1; 890 if ( isset( $q['post_parent'] ) ) 891 $query['post_parent'] = absint( $q['post_parent'] ); 892 if ( isset( $q['child_of'] ) ) 893 $query['child_of'] = absint( $q['child_of'] ); 890 894 } 891 895 892 896 if ( ! empty( $q['show_sticky'] ) ) -
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', 'post_parent', 'child_of'); 29 29 30 30 /** 31 31 * Extra query variables set by the user. -
wp-includes/query.php
2634 2634 2635 2635 $this->posts = $wpdb->get_results($this->request); 2636 2636 2637 if ( $q['child_of'] ) 2638 $this->posts = & get_page_children($q['child_of'], $this->posts); 2639 2637 2640 // Raw results filter. Prior to status checks. 2638 2641 if ( !$q['suppress_filters'] ) 2639 2642 $this->posts = apply_filters_ref_array('posts_results', array( $this->posts, &$this ) );