Hi all I've just finished to upgrade to the new version and everything seems to work fine thanks to the new constants. I've only one simple question in my fucntion.php (childtheme) I have a function for filtering the body classes and pior to this version the filter was "body_class":
and now I have changed with "thematic_body_class:
add_filter('thematic_body_class','repl_wp');
Is it right? Everything seems to work fine but I just wanted a confirm.
I write you here the full function:
// Replace body class
function repl_wp($c) {
get_post_type();
$attachment_gallery = attachment_gallery();
if (is_attachment() && isset($attachment_gallery)) {
return str_replace('single', 'attachment_gallery', $c);
}
else if( get_post_type() == 'video_works' ) {
return str_replace('single', 'video_works', $c);
}
else {
return $c;
}
}
add_filter('thematic_body_class','repl_wp');