wp_list_cats bug
-
After upgrading I wasn’t able to set a file variable in wp_list_cats()
I walked throug the code and changed this:
function get_category_link($echo = false, $category_id, $category_nicename, $file = "") {
global $wpdb, $tablecategories, $post, $querystring_start, $querystring_equal, $cache_categories;
$cat_ID = $category_id;
$permalink_structure = get_settings('permalink_structure');
if ('' == $permalink_structure) {
if($file == ""){
$file = get_settings('home') . '/' . get_settings('blogfilename');
}else{
$file = get_settings('home') . '/' . $file;
}
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘wp_list_cats bug’ is closed to new replies.