Make WordPress Core

Ticket #7326: get_posts_debug.diff

File get_posts_debug.diff, 380 bytes (added by ryan, 16 years ago)

Dump get_posts() query object.

  • wp-includes/post.php

     
    471471        $r['caller_get_posts'] = true;
    472472
    473473        $get_posts = new WP_Query;
    474         return $get_posts->query($r);
    475 
     474        $result = $get_posts->query($r);
     475        print_r($get_posts);
     476        return $result;
    476477}
    477478
    478479//