Plugin Contributor
selu
(@marius2012)
Hey,
SERVER_NAME is used when authorizing the applications, to get the current url of the plugin.
Have you discovered any bug with this or are you talking about something else ?
Thank you !
Hey, thanks for the quick response!
This suggestion originates from attempting to use the plugin in distributed environments. SERVER_NAME returns a static value based on transient environment endpoints that will eventually expire and break. HTTP_HOST returns dynamic URL’s based on the current request instead of relying on the temporary endpoint destinations.
Also, would you be willing to include a way for users to compare results of the $_SERVER variable with the domain name set on the site – then run through a series of checks to match them up, and ultimately give the user the option override if nothing matched?
Plugin Contributor
selu
(@marius2012)
hey Rachel,
Thank you for your feedback. I will add in the development log for the future release. If you have time and is an easy fix for you, you can check the code in github: https://github.com/codeinwp/tweet-old-post and send us a pull request for the fix.
We are already very greatful for your suggestion and if you have any other requests, please let me know.
Thank you !