lib/ImageHelper.php
public static function get_server_location( $url ) {
		// if we're already an absolute dir, just return.
		if ( 0 === strpos($url, ABSPATH) ) {
			return $url;
		}
		// otherwise, analyze URL then build mapping path
		$au = self::analyze_url($url);
		$result = self::_get_file_path($au['base'], $au['subdir'], $au['basename']);
		return $result;
	}
public static function get_server_location( $url ) {
		// if we're already an absolute dir, just return.
		if ( 0 === strpos($url, ABSPATH) ) {
			return $url;
		}
		// otherwise, analyze URL then build mapping path
		$au = self::analyze_url($url);
		$result = self::_get_file_path($au['base'], $au['subdir'], $au['basename']);
		return $result;
	}
public static function get_server_location ( $ url ) { // if we're already an absolute dir, just return. if ( 0 === strpos ( $ url , ABSPATH ) ) { return $ url ; } // otherwise, analyze URL then build mapping path $ au = self :: analyze_url ( $ url ) ; $ result = self :: _get_file_path ( $ au [ 'base' ] , $ au [ 'subdir' ] , $ au [ 'basename' ] ) ; return $ result ; }
Determines the filepath corresponding to a given URL

@param string  $url
@return string
Determines the filepath corresponding to a given URL