Make WordPress Core

Opened 20 years ago

Closed 19 years ago

#930 closed defect (bug) (fixed)

Private posts not visible

Reported by: perldude's profile perldude Owned by: ryan's profile 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)

#1 @perldude
20 years ago

  • Patch set to No

#2 @rsaldinger
19 years ago

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():

if (isset($user_ID) && ( != intval($user_ID)))

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.

#3 @anonymousbugger
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.

#4 @ryan
19 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.