dearhive / MashShare

MashShare - A Professional Social Sharing Ecosystem (WordPress Plugin)
GNU General Public License v2.0
16 stars 8 forks source link

Fix for missing HTTP_HOST in masharer #123

Closed jphorn closed 5 years ago

jphorn commented 5 years ago

https://github.com/mashshare/MashShare/blob/78f402302ef2519f5ab4cbdb9cf4a1e295a781e3/includes/template-functions.php#L1331

My developer (@stayallive added an extra check for HTTP_HOST to make it more compliant with cron jobs and/or (our) API workers. Would be appreciated if you could add it as well.

new

    if ( empty( $_SERVER['HTTP_HOST'] ) || ( $_SERVER['HTTP_HOST'] !== 'www.mashshare.net' && $_SERVER['HTTP_HOST'] !== 'src.wordpress-develop.dev' ) ) {
rene-hermenau commented 5 years ago

Hi @jphorn Sure will add it into next version. Will be released today.