Check that $post is an object as this function is used for more than just post changes. http://wordpress.org/support/topic/error-switching-themes?replies=2


git-svn-id: https://plugins.svn.wordpress.org/wp-super-cache/trunk@812482 b8457f37-d9ea-0310-8a92-e5e31aec5664