WordPress at a glance
function is not described

wp_cache_user_agent_is_rejected() WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

wp_cache_user_agent_is_rejected();

Code of wp_cache_user_agent_is_rejected() WPSCache 1.7.3

<?php
function wp_cache_user_agent_is_rejected() {
	global $cache_rejected_user_agent;

	if ( empty( $cache_rejected_user_agent ) || ! is_array( $cache_rejected_user_agent ) ) {
		return false;
	}

	$headers = apache_request_headers();
	if ( empty( $headers['User-Agent'] ) ) {
		return false;
	}

	foreach ( $cache_rejected_user_agent as $user_agent ) {
		if ( ! empty( $user_agent ) && stristr( $headers['User-Agent'], $user_agent ) ) {
			return true;
		}
	}

	return false;
}