Make WordPress Core

Changeset 18054


Ignore:
Timestamp:
05/26/2011 05:43:33 AM (14 years ago)
Author:
nacin
Message:

Don't use array calling for post_status in wp_edit_attachments_query() to prevent any use of the deprecated query_string filter (as in, don't use it) from tanking the page. see #17556, #17559. for the 3.1 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-admin/includes/post.php

    r18023 r18054  
    998998    $q['post_type'] = 'attachment';
    999999    $post_type = get_post_type_object( 'attachment' );
    1000     $states = array( 'inherit' );
     1000    $states = 'inherit';
    10011001    if ( current_user_can( $post_type->cap->read_private_posts ) )
    1002         $states[] = 'private';
     1002        $states .= ',private';
    10031003
    10041004    $q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : $states;
Note: See TracChangeset for help on using the changeset viewer.