Ticket #12960: 12960.diff
File 12960.diff, 486 bytes (added by , 15 years ago) |
---|
-
wp-includes/post.php
3865 3865 $sql = ''; 3866 3866 } 3867 3867 3868 $sql .= "(post_status = 'publish' ";3868 $sql .= "(post_status = 'publish' OR post_status = 'draft' OR post_status = 'future' OR post_status = 'pending'"; 3869 3869 3870 3870 if (current_user_can($cap)) { 3871 3871 // Does the user have the capability to view private posts? Guess so.