Make WordPress Core

Ticket #59224: 59224.diff

File 59224.diff, 536 bytes (added by david.binda, 16 months ago)
  • src/wp-includes/post.php

     
    60916091         */
    60926092        $query_args = apply_filters( 'get_pages_query_args', $query_args, $parsed_args );
    60936093
    6094         $query = new WP_Query( $query_args );
    6095         $pages = $query->get_posts();
     6094        $pages = new WP_Query();
     6095        $pages = $pages->query( $query_args );
    60966096
    60976097        if ( $child_of || $hierarchical ) {
    60986098                $pages = get_page_children( $child_of, $pages );