pache or something else. * * @global bool $is_apache */ $is_apache = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Apache' ) || str_contains( $_SERVER['SERVER_SOFTWARE'], 'LiteSpeed' ) ); /** * Whether the server software is Nginx or something else. * * @global bool $is_nginx */ $is_nginx = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'nginx' ) ); /** * Whether the server software is Caddy / FrankenPHP or something else. * * @global bool $is_caddy */ $is_caddy = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Caddy' ) || str_contains( $_SERVER['SERVER_SOFTWARE'], 'FrankenPHP' ) ); /** * Whether the server software is IIS or something else. * * @global bool $is_IIS */ $is_IIS = ! $is_apache && ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS' ) || str_contains( $_SERVER['SERVER_SOFTWARE'], 'ExpressionDevServer' ) ); /** * Whether the server software is IIS 7.X or greater. * * @global bool $is_iis7 */ $is_iis7 = $is_IIS && (int) substr( $_SERVER['SERVER_SOFTWARE'], strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/' ) + 14 ) >= 7; /** * Test if the current browser runs on a mobile device (smart phone, tablet, etc.). * * @since 3.4.0 * @since 6.4.0 Added checking for the Sec-CH-UA-Mobile request header. * * @return bool Whether the request is from a mobile device. */ function wp_is_mobile() { if ( isset( $_SERVER['HTTP_SEC_CH_UA_MOBILE'] ) ) { // This is the `Sec-CH-UA-Mobile` user agent client hint HTTP request header. // See . $is_mobile = ( '?1' === $_SERVER['HTTP_SEC_CH_UA_MOBILE'] ); } elseif ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) { $is_mobile = false; } elseif ( str_contains( $_SERVER['HTTP_USER_AGENT'], 'Mobile' ) // Many mobile devices (all iPhone, iPad, etc.) || str_contains( $_SERVER['HTTP_USER_AGENT'], 'Android' ) || str_contains( $_SERVER['HTTP_USER_AGENT'], 'Silk/' ) || str_contains( $_SERVER['HTTP_USER_AGENT'], 'Kindle' ) || str_contains( $_SERVER['HTTP_USER_AGENT'], 'BlackBerry' ) || str_contains( $_SERVER['HTTP_USER_AGENT'], 'Opera Mini' ) || str_contains( $_SERVER['HTTP_USER_AGENT'], 'Opera Mobi' ) ) { $is_mobile = true; } else { $is_mobile = false; } /** * Filters whether the request should be treated as coming from a mobile device or not. * * @since 4.9.0 * * @param bool $is_mobile Whether the request is from a mobile device or not. */ return apply_filters( 'wp_is_mobile', $is_mobile ); } Comments on: සාක්කු හිස් කර ගන්නැතිව ගෙයක් හදන්න, හඳුන්ගෙන් පොරොන්දුවක් https://ttvnews.lk/%e0%b6%a7%e0%b6%ba%e0%b7%92%e0%b6%bd%e0%b7%8a-%e0%b6%9c%e0%b7%90%e0%b6%b1-%e0%b7%83%e0%b7%94%e0%b6%b6-%e0%b6%86%e0%b6%bb%e0%b6%82%e0%b6%a0%e0%b7%92%e0%b6%ba%e0%b6%9a%e0%b7%8a/?utm_source=rss&utm_medium=rss&utm_campaign=%25e0%25b6%25a7%25e0%25b6%25ba%25e0%25b7%2592%25e0%25b6%25bd%25e0%25b7%258a-%25e0%25b6%259c%25e0%25b7%2590%25e0%25b6%25b1-%25e0%25b7%2583%25e0%25b7%2594%25e0%25b6%25b6-%25e0%25b6%2586%25e0%25b6%25bb%25e0%25b6%2582%25e0%25b6%25a0%25e0%25b7%2592%25e0%25b6%25ba%25e0%25b6%259a%25e0%25b7%258a ශ්‍රී ලංකාවේ ප්‍රමුඛතම, විශ්වසනීය පුවත් අඩවිය. Most reliarble 24x7 news web in Sri Lanka. Tue, 28 Oct 2025 07:46:54 +0000 hourly 1 https://wordpress.org/?v=7.0