• Resolved mehmetg

    (@mehmetg)


    First of all, your plugin is really nice. I really liked it. The best “like button” plugin right now. However, there are some troubling issues.

    /wp-admin/admin-ajax.php Issue

    Why does your plugin use the example.com/wp-admin/admin-ajax.php url request? This is not good. I use many good quality plugins. None of them use this url requests. Why not use REST API (/wp-json/)? For example, the WPP (WordPress Popular Posts) plugin uses the /wp-json/ url requests. I think you should update your plugin this way.

    Cookie Issue

    When I activate the SetCookie option, separate cookies are created for each like. Why are they not collected in just 1 cookie? Each like increases the number of cookies. And these cookies may not be liked by users. Please resolve this issue. Because I don’t use the IP option for GDPR compliance. And nobody can register on my site. So I must use the SetCookie option. But I can’t use it that way. It negatively affects the user experience.

    • This topic was modified 4 years, 6 months ago by mehmetg.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Alimir

    (@alimir)

    Hi @mehmetg

    1- I know there are ways to allow for Authentication with the Rest API, but it takes additional effort to get it to work properly.
    Meaning using functions like is_user_logged_in() will not work right out of the box with the Rest API, but it does with the AJAX method.
    So my answer would be when we need to make requests from the Website to itself ex. when JS needs some data then it is usually best to use the admin AJAX methods as you will have full access to the WP functions and Authentication if needed.

    2- In fact, this goes back to our old structure, and I put this issue in the Task List to be fixed in the next update.

    Thread Starter mehmetg

    (@mehmetg)

    Hi @alimir Ok. Thanks. Hope this doesn’t cause security issue. Because I was blocking all requests that started with /wp-admin . Anyway.

    Recently I noticed that some users are abusing the cookie method. They clean the cookies and like them again and again. So I will change the cookie log option. But I cannot change the cookie log option due to some issues:

    3. There is no IP option in the logging method section. There are only 3 options.(no log, cookie, username)

    4. Also, when you change the log type, all the old likes disappear.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘/wp-admin/admin-ajax.php & Cookie Issues’ is closed to new replies.