Esempio n. 1
0
 /**
  * This function is slightly different from the one below in the case of:
  * an image hosted on the same domain BUT on a different site than the
  * Wordpress install will be reported as external content.
  *
  * @param string  $url a URL to evaluate against
  * @return boolean if $url points to an external location returns true
  */
 public static function is_external_content($url)
 {
     $is_external = TimberURLHelper::is_absolute($url) && !TimberURLHelper::is_internal_content($url);
     return $is_external;
 }