public static function get_allowed_domains() {
		$domains = array(
			site_url(),
			'creativecommons.org',
			'inkscape.org',
			'sodipodi.sourceforge.net',
			'w3.org',
		);

		$domains = apply_filters('blobmimes_svg_allowed_domains', $domains);
		if (!is_array($domains) || !count($domains)) {
			return array();
		}

		// Sanitize the list before moving on.
		foreach ($domains as $k=>$domain) {
			if (false === ($domains[$k] = static::sanitize_domain($domain))) {
				unset($domains[$k]);
			}
		}

		// Pre-sorting will speed up looped checks.
		$domains = array_unique($domains);
		sort($domains);
		return $domains;
	}
public static function get_allowed_domains() {
		$domains = array(
			site_url(),
			'creativecommons.org',
			'inkscape.org',
			'sodipodi.sourceforge.net',
			'w3.org',
		);

		$domains = apply_filters('blobmimes_svg_allowed_domains', $domains);
		if (!is_array($domains) || !count($domains)) {
			return array();
		}

		// Sanitize the list before moving on.
		foreach ($domains as $k=>$domain) {
			if (false === ($domains[$k] = static::sanitize_domain($domain))) {
				unset($domains[$k]);
			}
		}

		// Pre-sorting will speed up looped checks.
		$domains = array_unique($domains);
		sort($domains);
		return $domains;
	}
public static function get_allowed_domains ( ) { $ domains = array ( site_url ( ) , 'creativecommons.org' , 'inkscape.org' , 'sodipodi.sourceforge.net' , 'w3.org' , ) ; $ domains = apply_filters ( 'blobmimes_svg_allowed_domains' , $ domains ) ; if ( ! is_array ( $ domains ) || ! count ( $ domains ) ) { return array ( ) ; } // Sanitize the list before moving on. foreach ( $ domains as $ k => $ domain ) { if ( false === ( $ domains [ $ k ] = static :: sanitize_domain ( $ domain ) ) ) { unset ( $ domains [ $ k ] ) ; } } // Pre-sorting will speed up looped checks. $ domains = array_unique ( $ domains ) ; sort ( $ domains ) ; return $ domains ; }
Return whitelisted domains

@return array Domains.
Return whitelisted domains