is_lighttpd_before_150

Definition:
function is_lighttpd_before_150() {}

Is the server running earlier than 1.5.0 version of lighttpd?

Return values

returns:Whether the server is running lighttpd < 1.5.0

Source code

function is_lighttpd_before_150() {

	$server_parts = explode( '/', isset( $_SERVER['SERVER_SOFTWARE'] )? $_SERVER['SERVER_SOFTWARE'] : '' );

	$server_parts[1] = isset( $server_parts[1] )? $server_parts[1] : '';

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

}

2129

is_info

Definition:
function is_info ($sc) {}

Parameters

  • $sc

Source code

function is_info ($sc) {

	return $sc >= 100 && $sc < 200;

}

2127

is_home

Definition:
function is_home() {}

Is the query for the blog homepage?
This is the page which shows the time based blog content of your site.

Return values

returns:True if blog view homepage.

Source code

	function is_home() {

		return (bool) $this->is_home;

	}

2125

is_front_page

Definition:
function is_front_page() {}

Is the query for the front page of the site?
This is for what is displayed at your site’s main URL.

Return values

returns:True, if front of site.

Source code

	function is_front_page() {

		// most likely case

		if ( 'posts' == get_option( 'show_on_front') && $this->is_home() )

			return true;

		elseif ( 'page' == get_option( 'show_on_front') && get_option( 'page_on_front' ) && $this->is_page( get_option( 'page_on_front' ) ) )

			return true;

		else

			return false;

	}

2123

is_feed

Definition:
function is_feed( $feeds = '' ) {}

Is the query for a feed?

Parameters

  • string|array $feeds: Optional feed types to check.

Source code

	function is_feed( $feeds = '' ) {

		if ( empty( $feeds ) || ! $this->is_feed )

			return (bool) $this->is_feed;

		$qv = $this->get( 'feed' );

		if ( 'feed' == $qv )

			$qv = get_default_feed();

		return in_array( $qv, (array) $feeds );

	}

2121