Suppress query filters when called from get_posts(). see #7326 #7547

git-svn-id: https://develop.svn.wordpress.org/trunk@8766 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-08-28 22:30:27 +00:00
parent faa46dd672
commit cefe351dac
2 changed files with 37 additions and 24 deletions

View File

@@ -453,7 +453,7 @@ function get_posts($args = null) {
'order' => 'DESC', 'include' => '',
'exclude' => '', 'meta_key' => '',
'meta_value' =>'', 'post_type' => 'post',
'post_parent' => 0
'post_parent' => 0, 'suppress_filters' => true
);
$r = wp_parse_args( $args, $defaults );