--- a/wp/wp-includes/class-wp-http-proxy.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/class-wp-http-proxy.php Fri Sep 05 18:40:08 2025 +0200
@@ -39,12 +39,13 @@
*
* @since 2.8.0
*/
+#[AllowDynamicProperties]
class WP_HTTP_Proxy {
/**
* Whether proxy connection should be used.
*
- * Constants which control this behaviour:
+ * Constants which control this behavior:
*
* - `WP_PROXY_HOST`
* - `WP_PROXY_PORT`
@@ -60,7 +61,7 @@
/**
* Whether authentication should be used.
*
- * Constants which control this behaviour:
+ * Constants which control this behavior:
*
* - `WP_PROXY_USERNAME`
* - `WP_PROXY_PASSWORD`
@@ -208,7 +209,7 @@
if ( null === $bypass_hosts ) {
$bypass_hosts = preg_split( '|,\s*|', WP_PROXY_BYPASS_HOSTS );
- if ( false !== strpos( WP_PROXY_BYPASS_HOSTS, '*' ) ) {
+ if ( str_contains( WP_PROXY_BYPASS_HOSTS, '*' ) ) {
$wildcard_regex = array();
foreach ( $bypass_hosts as $host ) {
$wildcard_regex[] = str_replace( '\*', '.+', preg_quote( $host, '/' ) );