Freemius / wordpress-sdk

https://freemius.com
GNU General Public License v3.0
267 stars 77 forks source link

Including pluggable.php is a bad practice #165

Open vovafeldman opened 7 years ago

vovafeldman commented 7 years ago

Actual Behavior:

Versions: (*)

turtlepod commented 6 years ago

What is the reason wp_get_current_user() is not loaded in current instance?

I'm not sure, is it possible that the cause is because you use custom endpoint for API call (from freemius server to target site?) and WordPress is not actually loaded in this endpoint? (I'm sorry this library is really huge)

If this is the case, I think it's best to add custom endpoint in WordPress instead of adding WordPress to custom endpoint.

Or maybe this endpoint is loaded too early ?