Home > Uncategorized > Download Monitor bug fixes

Download Monitor bug fixes

After using Download Monitor (a WP plugin), I noticed there was a little annoying bug in uploader.php, which prevented me from using the post uploader form.

To fix, find (in uploader.php):

<option value=""><?php _e('N/A',"wp-download_monitor"); ?></option>

Replace with:

<option value="0"><?php _e('N/A',"wp-download_monitor"); ?></option>

Another minor bug is that there was a missing space when using the download short code (link titles looked like VersionNumHere instead of Version NumHere).

To fix, find (in wp-download_monitor.php):

$format = '<a class="downloadlink" href="{url}" title="{version,"'.__("Version","wp-download_monitor").'", ""} '.__("downloaded","wp-download_monitor").' {hits} '.__("times","wp-download_monitor").'" >{title} ({hits})</a>';

Replace with:

$format = '<a class="downloadlink" href="{url}" title="{version,"'.__("Version","wp-download_monitor").' ", ""} '.__("downloaded","wp-download_monitor").' {hits} '.__("times","wp-download_monitor").'" >{title} ({hits})</a>';
Categories: Uncategorized Tags: ,
  1. No comments yet.
  1. No trackbacks yet.