WordPress.org

Make WordPress Core

Ticket #12960: 12960.diff

File 12960.diff, 486 bytes (added by wojtek.szkutnik, 4 years ago)
  • wp-includes/post.php

     
    38653865                $sql = ''; 
    38663866        } 
    38673867 
    3868         $sql .= "(post_status = 'publish'"; 
     3868        $sql .= "(post_status = 'publish' OR post_status = 'draft' OR post_status = 'future' OR post_status = 'pending'"; 
    38693869 
    38703870        if (current_user_can($cap)) { 
    38713871                // Does the user have the capability to view private posts? Guess so.