WordPress.org

Make WordPress Core

Changeset 25270


Ignore:
Timestamp:
09/05/2013 11:35:30 PM (6 years ago)
Author:
wonderboymusic
Message:

Simplify the check for false-y child_of arg.

Props SergeyBiryukov.
See #25230, [25245].

File:
1 edited

Legend:

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

    r25268 r25270  
    36663666        return $pages;
    36673667
    3668     if ( $parent > 0 && empty( $child_of ) && ! isset( $args['child_of'] ) )
     3668    if ( $parent && ! $child_of )
    36693669        $hierarchical = false;
    36703670
Note: See TracChangeset for help on using the changeset viewer.