WordPress.org

Make WordPress Core

Ticket #22208: wp_includes_post.diff

File wp_includes_post.diff, 410 bytes (added by sphoid, 20 months ago)

Improved Patch that checks for existence of $rfields?

  • post.php

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