WordPress.org

Make WordPress Core

Ticket #22208: 22208.diff

File 22208.diff, 369 bytes (added by Jesper800, 5 years ago)
  • post.php

     
    313313        if ( !$children )
    314314                return $kids;
    315315
     316        if ( $r['fields'] == 'ids' || $r['fields'] == 'id=>parent' )
     317                return $children;
     318       
    316319        update_post_cache($children);
    317320
    318321        foreach ( $children as $key => $child )