`$theme` var is a string and not an object.
Update wordpress-plugin/includes/presets.php
Merge pull request #295 from nvartolomei/master

Fix for `theme_installed` presets function