Yahnis Elsts
Yahnis Elsts
`$_SERVER['HTTP_HOST']` typically contains the domain name of the site on which the script is running. It is *not* the domain name of the site that's sending the request. For example,...
Unfortunately, I don't have a simple solution that I could share. I use a system based on license keys for one of my own plugins, but it's too complex to...
What do you mean? If you're asking if it's possible to get the domain name of the site that's sending the request, you can sometimes do that by extracting the...
That script is still looking for the domain name in the wrong place (`HTTP_HOST`). > Why you think that they can easily change header? if my test.php stay on my...
You could theoretically put it in your plugin file, yes. It still wouldn't be a reliable way to add the site URL to the header since another script could easily...
Sure. An imperfect solution is better than nothing.
My opinion is that it is possible to add that code to your plugin, but it's probably not a useful thing to do. To put it more strongly: Ignore my...
> [...] in many cases there's already an error handling system in place to deal with this condition. Could you elaborate on this? Do you mean that many plugin and...
If the server response doesn't contain any plugin meta, it doesn't seem like a valid update API response even if it contains syntactically valid JSON. Could you perhaps make it...
I wouldn't be opposed to the idea of adding a "debug mode" filter. The update checker already has something similar in the form of the `$debugMode` property of the `Puc_v4p9_UpdateChecker`...