WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #34947, comment 2


Ignore:
Timestamp:
12/09/2015 10:37:36 PM (5 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34947, comment 2

    initial v1  
    1616        }
    1717        if ( current_user_can( $post_type_obj->cap->read_private_posts ) ) {
    18                 $query->set( 'post_status', array_merge( 'private', (array) $query->get( 'post_status' ) ) );
     18                $query->set( 'post_status', array_merge( array( 'private' ), (array) $query->get( 'post_status' ) ) );
    1919        }
    2020} );