function cp_detect_blog_path() { _deprecated_function(__FUNCTION__, '3.0.5'); $blogcatid = get_option('cp_blog_cat'); if (!empty($blogcatid)) { $blogpath = get_category_link(get_option('cp_blog_cat')); } else { $blogpath = cp_cat_base() . '/blog/'; } return $blogpath; }
function cp_detect_blog_path() { $blogcatid = get_option('cp_blog_cat'); if (!empty($blogcatid)) { $blogpath = get_category_link(get_option('cp_blog_cat')); } else { // since the cat id field is blank, we need to guess the path $blogpath = cp_cat_base() . '/blog/'; } return $blogpath; }