WordPress.org

Make WordPress Core

Changeset 8504


Ignore:
Timestamp:
07/30/2008 08:16:56 AM (10 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r8188 r8504  
    774774
    775775        if ( !empty($qv['post_status']) )
    776             $qv['post_status'] = sanitize_user($qv['post_status'], true);
     776            $qv['post_status'] = preg_replace('|[^a-z0-9_,-]|', '', $qv['post_status']);
    777777
    778778        if ( $this->is_posts_page && !$qv['withcomments'] )
Note: See TracChangeset for help on using the changeset viewer.