← All changes
|
jetpack_vendor/automattic/jetpack-connection/src/class-server-sandbox.php
+1
-1
13.6.2
→
16.3
View file →
| @@ -67,9 +67,9 @@ | ||
| 67 | 67 | case 'public-api.wordpress.com': |
| 68 | 68 | case 'jetpack.wordpress.com': |
| 69 | 69 | case 'jetpack.com': |
| 70 | 70 | case 'dashboard.wordpress.com': |
| 71 | - $host = isset( $headers['Host'] ) ? $headers['Host'] : $url_host; | |
| 71 | + $host = $headers['Host'] ?? $url_host; | |
| 72 | 72 | $original_url = $url; |
| 73 | 73 | $url = preg_replace( |
| 74 | 74 | '@^(https?://)' . preg_quote( $url_host, '@' ) . '(?=[/?#].*|$)@', |
| 75 | 75 | '${1}' . $sandbox, |