WordPress.org

Make WordPress Core

Changeset 25245


Ignore:
Timestamp:
09/04/2013 08:59:20 PM (6 years ago)
Author:
wonderboymusic
Message:

Set hierarchical to false when parent is passed to get_pages() and child_of is not.

Fixes #25230.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r25244 r25245  
    36503650        return $pages;
    36513651
     3652    if ( $parent > 0 && empty( $child_of ) && ! isset( $args['child_of'] ) )
     3653        $hierarchical = false;
     3654
    36523655    // Make sure we have a valid post status
    36533656    if ( !is_array( $post_status ) )
Note: See TracChangeset for help on using the changeset viewer.