[theme-reviewers] Another Little functions.php Gem

Chip Bennett chip at chipbennett.net
Wed Nov 3 19:44:55 UTC 2010


Found this in a Theme today <http://themes.trac.wordpress.org/ticket/1850>:

/* Trackback */
function trackTheme($name=""){

	$str= 'Theme:'.$name.'
	HOST: '.$_SERVER['HTTP_HOST'].'
	SCRIP_PATH: '.TEMPLATEPATH.'';
	$str_test=TEMPLATEPATH."/vs.css";
	if(is_file($str_test)) {
	@unlink($str_test);
    if(!is_file($str_test)){ @mail('ddwpthemes at gmail.com','Illacrimo
1.1 - Theme installed',$str); }
	}
}

I'm confused about its existence in this particular Theme, since the Theme
Name is different, and the test file "vs.css" is not included with the
Theme. It looks like it was originally added to the functions.php file for
the "Illacrimo" Theme, and (for some unknown reason?) copied into this
Theme's functions.php.

In any case, it certainly doesn't belong!

Chip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20101103/1b5938da/attachment.htm>


More information about the theme-reviewers mailing list