Opened 20 years ago
Closed 19 years ago
#930 closed defect (bug) (fixed)
Private posts not visible
Reported by: | perldude | Owned by: | ryan |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 1.5 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Private posts are not visible for me. They don't show up when I'm logged in.
Change History (4)
#3
@
19 years ago
I believe this is a bug in WP, but hasn't been addressed or fixed. Adding a call to get_currentuserinfo(); is the correct way to fix it.
Note: See
TracTickets for help on using
tickets.
I see the same problem. Based on some old threads in the support forums, it seems that $user_ID isn't set at the time that this check happens in WP_Query::get_posts():
Consistent with that, I was able to get it work by adding a call to get_currentuserinfo() just prior to this check, but I have no idea if this is the "right" (or safe!) fix.