Allow comma-separated post_status values in WP_Query. Props markjaquith, fixes #7423 for 2.7
git-svn-id: http://svn.automattic.com/wordpress/trunk@8504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f08ff1124c
commit
38aa571484
|
@ -773,7 +773,7 @@ class WP_Query {
|
||||||
$qv['post_type'] = sanitize_user($qv['post_type'], true);
|
$qv['post_type'] = sanitize_user($qv['post_type'], true);
|
||||||
|
|
||||||
if ( !empty($qv['post_status']) )
|
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'] )
|
if ( $this->is_posts_page && !$qv['withcomments'] )
|
||||||
$this->is_comment_feed = false;
|
$this->is_comment_feed = false;
|
||||||
|
|
Loading…
Reference in New Issue