posts ") && strpos($query, "post_parent") ) ) { // as of WP 2.6, only the post_parent is being wiped. $query = preg_replace( "/,\s*`post_parent`\s*=\s*'0'/", "", $query); } return $query; } } ?>