Updated the theme to work on WordPress 3.5.1 with no warnings