Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Incompatibility with other plugins that add columns to categories

$
0
0

Replies: 0

I initially thought this was a Polylang bug but as @chouby has shown it turns out it’s this plugin.

I quote:

It’s a bug in WordPress Download Manager. A function hooked to a filter which doesn’t return anything and thus breaks all other functions hooke to the same filter.

In download-manager/admin/menus/class.Categories.php, replace

    function categoryIDColumnData($c, $column_name, $term_id) {

        if ($column_name == 'tag_ID') {
            echo $term_id;
        }
    }

by

    function categoryIDColumnData($c, $column_name, $term_id) {

        if ($column_name == 'tag_ID') {
            return $term_id;
        }
        return $c;
    }

Note the return $c; line!

See: https://wordpress.org/support/topic/incompatibility-with-download-manager-categories/

Cheers, Jory


Viewing all articles
Browse latest Browse all 59525

Trending Articles