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

WordPress Trac noreply at wordpress.org
Tue Aug 30 13:05:09 UTC 2016


#37879: On author.php page is_user_logged_in() return issue
--------------------------+----------------------
 Reporter:  Aamir.cs      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Users         |     Version:  4.6
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by johnbillion):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hi @Aamir.cs.

 I've tested this behaviour using the default theme (Twenty Sixteen) and
 `is_user_logged_in()` correctly returns `false` when viewing an author
 archive. It's most likely that your theme's `author.php` file is
 overwriting the `$current_user` global which is used to determine the
 current user.

 If you can't get to the bottom of the problem, you should post a thread in
 the [https://wordpress.org/support Support Forums] or on
 [http://wordpress.stackexchange.com/ WordPress Stack Exchange].

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


More information about the wp-trac mailing list