Allow comma-separated post_status values in WP_Query. Props markjaquith, fixes #7423 for 2.7

git-svn-id: https://develop.svn.wordpress.org/trunk@8504 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-07-30 08:16:56 +00:00
parent c8c3da8f81
commit b12c2edcf0
1 changed files with 1 additions and 1 deletions

View File

@ -773,7 +773,7 @@ class WP_Query {
$qv['post_type'] = sanitize_user($qv['post_type'], true);
if ( !empty($qv['post_status']) )
$qv['post_status'] = sanitize_user($qv['post_status'], true);
$qv['post_status'] = preg_replace('|[^a-z0-9_,-]|', '', $qv['post_status']);
if ( $this->is_posts_page && !$qv['withcomments'] )
$this->is_comment_feed = false;