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>';

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>