WordPress.org

Make WordPress Core

Ticket #19116: 19116.diff

File 19116.diff, 498 bytes (added by duck_, 7 years ago)
  • wp-includes/post.php

     
    41504150        // Private posts
    41514151        $post_type_obj = get_post_type_object( $post_type );
    41524152        if ( ! $post_type_obj )
    4153                 return ' 1 = 0 ';
     4153                return $full ? 'WHERE 1 = 0' : ' 1 = 0 ';
    41544154
    41554155        // This hook is deprecated. Why you'd want to use it, I dunno.
    41564156        if ( ! $cap = apply_filters( 'pub_priv_sql_capability', '' ) )