wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



is_lighttpd_before_150 › WordPress Function

Depuis2.5.0
Dépréciéen/a
› is_lighttpd_before_150 ( Pas de paramètres )
Retourne:
  • (bool) Whether the server is running lighttpd < 1.5.0.
Défini(e) dans:
Codex:

Determines whether the server is running an earlier than 1.5.0 version of lighttpd.



Source

function is_lighttpd_before_150() {
	$server_parts      = explode( '/', $_SERVER['SERVER_SOFTWARE'] ?? '' );
	$server_parts[1] ??= '';

	return ( 'lighttpd' === $server_parts[0] && -1 === version_compare( $server_parts[1], '1.5.0' ) );
}