'ANTIVIRUS_AI_BILLING_HELP_URL', 'bugs' => 'ANTIVIRUS_AI_BUG_REPORT_URL', 'false_positive' => 'ANTIVIRUS_AI_FALSE_POSITIVE_URL', 'security' => 'ANTIVIRUS_AI_DISCLOSURE_URL', ); foreach ( $names as $kind => $name ) { if ( ! defined( $name ) || ! is_string( constant( $name ) ) ) { continue; } $url = constant( $name ); $p = wp_parse_url( $url ); if ( strlen( $url ) <= 2048 && ! preg_match( '/[\x00-\x20\x7f]/', $url ) && is_array( $p ) && 'https' === ( $p['scheme'] ?? '' ) && ! empty( $p['host'] ) && ! isset( $p['user'] ) && ! isset( $p['pass'] ) ) { $result[ $kind ] = $url; } } return $result; } }