is_lighttpd_before_150

The WordPress Core is lighttpd before 150 function.

Description

is_lighttpd_before_150(); 

Usage

  1. if ( !function_exists( 'is_lighttpd_before_150' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/noop.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = is_lighttpd_before_150(); 
  7.  

Defined (2)

The function is defined in the following location(s).

/wp-admin/includes/noop.php  
  1. function is_lighttpd_before_150() {} 
/wp-includes/functions.php  
  1. function is_lighttpd_before_150() { 
  2. $server_parts = explode( '/', isset( $_SERVER['SERVER_SOFTWARE'] )? $_SERVER['SERVER_SOFTWARE'] : '' ); 
  3. $server_parts[1] = isset( $server_parts[1] )? $server_parts[1] : ''; 
  4. return 'lighttpd' == $server_parts[0] && -1 == version_compare( $server_parts[1], '1.5.0' );