bobbingwide / oik-batch

Batch interface to WordPress
https://www.oik-plugins.com/oik-plugins/oik-batch
GNU General Public License v2.0
0 stars 0 forks source link

Implement oik_batch_maybe_set_scheme_from_siteurl() for oik issue 70 #37

Closed bobbingwide closed 5 years ago

bobbingwide commented 5 years ago

In https://github.com/bobbingwide/oik/issues/70 I noted a problem where the values returned from siteurl() and homeurl() were different when run in oik-batch.

This issue is to cover the changes to oik-batch to overcome this problem.

During start up, when it's not already set, we want to set $_SERVER['HTTPS'] to 'on' if WP_SITEURL or the siteurl option field expects https.