Make WordPress Core


Ignore:
Timestamp:
08/29/2013 03:07:59 PM (10 years ago)
Author:
wonderboymusic
Message:

Respect the fields arg when passed to get_children().

Fixes #22208.

File:
1 edited

Legend:

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

    r25130 r25160  
    312312    $children = get_posts( $r );
    313313
    314     if ( !$children )
     314    if ( ! $children )
    315315        return $kids;
     316
     317    if ( ! empty( $r['fields'] ) )
     318        return $children;
    316319
    317320    update_post_cache($children);
Note: See TracChangeset for help on using the changeset viewer.