Advertisement
nfmohit

Untitled

May 23rd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. --- a/classes/Domainmap/Utils.php
  2. +++ b/classes/Domainmap/Utils.php
  3. @@ -241,7 +241,11 @@ class Domainmap_Utils{
  4. } else {
  5.  
  6. if( !isset( self::$_schemes[ $domain ] ) ){
  7. - $force_ssl_on_mapped_domain = self::$_schemes[ $domain ] = (int) $this->_wpdb->get_var( $this->_wpdb->prepare("SELECT `scheme` FROM `" . DOMAINMAP_TABLE_MAP . "` WHERE `domain`=%s", $domain) );
  8. + $scheme = $this->_wpdb->get_var( $this->_wpdb->prepare("SELECT `scheme` FROM `" . DOMAINMAP_TABLE_MAP . "` WHERE `domain`=%s", $domain) );
  9. + if (isset($scheme)) {
  10. + $scheme = 2;
  11. + }
  12. + $force_ssl_on_mapped_domain = self::$_schemes[ $domain ] = (int) $scheme;
  13. }else{
  14. $force_ssl_on_mapped_domain = self::$_schemes[ $domain ];
  15. }
  16. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement