[wp-trac] [WordPress Trac] #37879: On author.php page is_user_logged_in() return issue

WordPress Trac noreply at wordpress.org
Tue Aug 30 10:53:56 UTC 2016


#37879: On author.php page is_user_logged_in() return issue
--------------------------+-----------------------------
 Reporter:  Aamir.cs      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  4.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello,

 We are Theme development team. We faced a problem during the development
 of theme. Issue is at author.php is_user_logged_in() does not work
 properly. When we logged in and check is_user_logged_in() function at
 author.php its return "true" its OK, But when we logged out then still its
 return "true".

 And Second is

 We are developing a users based directory and we need author.php for user
 detail page. Example there are two users USER-A with ID-330 and USER-B
 with ID-331, and USER-A is logged in when USER-A reached USER-B detail
 page(on author.php) and check get_current_user_id() it returns us 331. It
 returns current user ID not logged in user ID.

 I think there should be a session which store current logged in user. And
 on author.php it should not overridden with current user ID.

 It is very critical issue while developing a user base website. Other way
 can be a custom templates for user but i think it would not be a best
 practice.

 We are waiting your kind response.

 Thank You

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37879>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list