Make WordPress Core

Ticket #18848: 18848.diff

File 18848.diff, 1.4 KB (added by nacin, 13 years ago)
  • wp-includes/class-wp.php

     
    2525         * @since 2.0.0
    2626         * @var array
    2727         */
    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');
    2929
    3030        /**
    3131         * Extra query variables set by the user.
  • wp-admin/includes/post.php

     
    887887                $query['order'] = 'asc';
    888888                $query['posts_per_page'] = -1;
    889889                $query['posts_per_archive_page'] = -1;
     890                if ( isset( $q['post_parent'] ) )
     891                        $query['post_parent'] = absint( $q['post_parent'] );
    890892        }
    891893
    892894        if ( ! empty( $q['show_sticky'] ) )