| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | public function url() |
| 10 | 10 | { |
| 11 | - $scheme = ( !empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) !== 'off' || ( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] == 443 ) ) ? 'https' : 'http'; | |
| 11 | + $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? 'https' : 'http'; | |
| 12 | 12 | $ajaxurl = admin_url( 'admin-ajax.php', $scheme ); |
| 13 | 13 | $ajaxurl .= '?wpupg_ajax=1'; |
| 14 | 14 | |
| 15 | 15 | // WPML AJAX Localization Fix |