Replaced custom body class function with extension of WP native one

via https://gist.github.com/germanny/8338063 from @germanny