Forums

[Plugin: Wordpress Download Monitor] Bug Fix (2 posts)

  1. hOBOJoE
    Member
    Posted 4 months ago #

    I noticed that when you have sub-categories and view the Edit Downloads panel in wp-admin, it shows in the format: #ID# - Subcat -- Subcat instead of: #ID# - Parent -- Subcat

    To fix this, replace lines 1449 - 1452 from this:

    while ($c>0) {
    	$c = $wpdb->get_row("SELECT * FROM $wp_dlm_db_cats where id=".$c->parent." LIMIT 1;");
    	$chain = $c->name.' — '.$chain;
    }

    to this:

    if ($c>0) {
    	$c = $wpdb->get_row("SELECT * FROM $wp_dlm_db_cats where id=".$d->parent." LIMIT 1;");
    	$chain = $c->name.' — '.$chain;
    }
  2. andfer
    Member
    Posted 4 months ago #

    Hi. I thougt it was a fix for my problem here. But as I see it, my problem is the same, but just in the public view/users view.

Reply

You must log in to post.

About this Topic