-
-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the condition where it checks if the request is a REST Request #256
Conversation
Hello @Tmeister, any update on this pull request? |
@Tmeister any update on this, this is also happening on the default posts API (more and more often), on different websites. |
thank you |
I also think the current condition is wrong (as of v1.3.2), because we noticed that since v1.3.1 authorized users did not receive non-public data through API anymore. But your fix changes the condition completely, I think a smaller change would be sufficient. So I propose to change the condition from
to
Or maybe the check for this constant can be dropped completely. |
Hello @ckubitza. |
Hey @marioshtika, |
Thanks for the fix @marioshtika and @ckubitza. I got errors when upgrading to 1.3.2 a little while back. 404 errors updating posts, so I rolled back due to time constraints but upgrading a site today another plugin (Pods) had a clash with the Firebase\JWT namespace so ran the update again which solved that problem but this problem still existed and after searching found this PR so I've patched for now but @Tmeister it would be really good if you could merge a fix for this. Cheers, Vic |
@Tmeister any update on this PR? |
@marioshtika thank you. it solve my problem. @Tmeister can u merge it please |
@Tmeister any update on this pull request. |
@Tmeister Would be great if you could merge this. This fix has also worked for me |
it is not working anymore |
@Tmeister Pinging again on this. Please respond |
Related to issue #257
I used the below variables to make it easy to read
If you want it a single line you can use