Title: Issues with comments
Last modified: May 31, 2024

---

# Issues with comments

 *  Resolved [ngoncalves](https://wordpress.org/support/users/ngoncalves/)
 * (@ngoncalves)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/issues-with-comments-4/)
 * Hi,
 * There are two issues with comments in the theme:
 * It is impossible to leave a comment even when the user is logged in. In comments.
   php L.45, the code tries to know if the user is logged into the site using $user_ID
   but this is undefined as of latest WordPress version (6.5.3). Therefore, logged
   user are not shown the comment box. This can easily be fixed by replacing $user_ID
   by the is_user_logged_in() function.
 * In case the user is not logged in, it is supposed to have a message with a link
   to easily log in, however the message is escaped, therefore the <a> tag isn’t
   rendered.
 * > [ArileWP comments as a logged in user](https://imgur.com/a/SXQM0hw)
 * In this screenshot, you can see I am logged in as a user, yet I am still shown
   the message as if I was not. You can also see that the login link is escaped 
   and not rendered as it should.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Theme Author [Theme Arile](https://wordpress.org/support/users/themearile/)
 * (@themearile)
 * [2 years ago](https://wordpress.org/support/topic/issues-with-comments-4/#post-17795403)
 * Hi ngoncalves
 * Thanks for pointing out.
 * We have released the new version of the theme now you can update your theme and
   check your site.
 * Let me know if it works.
 * Thanks
 *  Thread Starter [ngoncalves](https://wordpress.org/support/users/ngoncalves/)
 * (@ngoncalves)
 * [2 years ago](https://wordpress.org/support/topic/issues-with-comments-4/#post-17795949)
 * All good. Thanks for the the quick fix. I’ve marked this as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issues with comments’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/arilewp/3.15.2/screenshot.png)
 * ArileWP
 * [Support Threads](https://wordpress.org/support/theme/arilewp/)
 * [Active Topics](https://wordpress.org/support/theme/arilewp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/arilewp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/arilewp/reviews/)

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * 2 replies
 * 2 participants
 * Last reply from: [ngoncalves](https://wordpress.org/support/users/ngoncalves/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/issues-with-comments-4/#post-17795949)
 * Status: resolved