=== Rundiz Downloads ===
Contributors: okvee
Tags: downloads, download, download manager, file hosting, GitHub
Tested up to: 7.0
Stable tag: 1.1.5
License: MIT
License URI: https://opensource.org/licenses/MIT
Requires at least: 4.7.0
Requires PHP: 5.5

Download manager for WordPress that support GitHub auto update.

== Description ==
Rundiz Downloads is a files, documents management that support GitHub auto update. Provide the download link, track download files.

The GitHub auto update means the URL and file size will be update automatically on GitHub commit or new tag/release.
You can change your setting to accept how often of auto update. Every releases and commits, every releases, or none.

= Features =

 * Manage files locally or hosted on GitHub or any remote files.
 * Use GitHub OAuth to manage webhooks (webhook is for auto update). It will be super easy if you have many users or repositories.
 * Auto update download URL and version once GitHub repository was updated.
 * Setting GitHub auto update to none, every releases, every releases and commits.
 * Manual update multiple remote file data such as file size that was changed.
 * Use version range to compare tags before update.
 * Insert download button on classic editor or TinyMCE.
 * Download logs/statistic.
 * Admin dashboard statistic widget.
 * Block bots from downloading by captcha, user agent.
 * Captcha with the audio.
 * Redirect to file or force download. (The force download will be working with local file only.)
 * Support shortcode.
 * Customisable download element for shortcode.
 * Automatically delete logs older than specific number of days.
 * Localisation support

Tested up to PHP 8.5.

== Installation ==
1. Upload "rundiz-downloads" folder to the "/wp-content/plugins/" directory.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. Access plugin setup page.
4. Follow setup instruction on screen.

== Frequently Asked Questions ==
= Does it support multisite? =
Yes, it is. However the network activation for multisite will not working, you can only activate the plugin per site that have to use it.

= Will the uploaded files be deleted on uninstall? =
Yes, the uploaded files and folders in WordPress upload folder will be deleted on plugin uninstall.

= Will the plugin's tables be dropped on uninstall? =
Yes, the plugin's tables will be dropped on uninstall.

== Screenshots ==
1. Front-end download button and description example.
2. Manage downloads page.
3. Add or edit download page.
4. Download logs page.
5. GitHub OAuth page.
6. Plugin settings tab 1 (General).
7. Plugin settings tab 2 (Anti robots settings).
8. Plugin settings tab 3 (GitHub settings).
9. Plugin settings tab 4 (Statistic/Logs).
10. Plugin settings tab 5 (Design). This will be convert from shortcode into the element you design.
11. Add a download button for TinyMCE (classic editor).
12. Add a download dialog after clicked on the button in classic editor.

== Changelog ==
= 1.1.5 =
2026-07-09

* Fix use incorrect GitHub URL on auto update page.

= 1.1.4 =
2026-04-08

* Update escape SQL.
* Fix incorrect escape URL.

= 1.1.3 =
2026-04-06

* Minor bug fix.
* Rename assets/css/admin -> assets/css/Admin
* Rename assets/js/admin -> assets/js/Admin
* Moved some assets files into sub folder.
* 1.1.3 is bump version number to fix incomplete SVN.

= 1.1.1 =
2026-03-27

* Fix wrong enqueue without register script.
* Update prevent load the (download button) into other Tiny MCE editor.
* Add set transient to mark site need manual update.

= 1.1.0 =
2026-03-27

* Rename namespace, constants, text domain to match plugin slug.  
    The name `rd-downloads` was used from the beginning of this plugin but wordpress.org plugin system renamed it to `rundiz-downloads` on submit.  
    So, this plugin have to rename to match its slug on w.org.
* Rename enqueue handles. Fix incorrect prefix (rd-download).
* Rename admin menu/sub menu slugs.
* Rename HTML class, ID. Rename JS console prefix.
* Rename cache prefix in PHP.
* Rename nonce, template ID.
* Rename rd-downloads.css to rundiz-downloads.css.
* Rename option name to match plugin slug.
* Rename upload folder name to match plugin slug.
* Rename DB table names.
* Update as per PHPCS's instructions.
* Rename `rddownloads_` prefix to be `rundiz_downloads_`.
* When you update to this version, please update permalink by go to Settings > Permalinks > and click Save Changes. This will not change anything but it will be flush the rewrite rules to let them update.

= 1.0.17 =
2025-12-21

* Update loader class to load controllers implemented interface only.

= 1.0.16 =
2025-12-18

* Improve security for default or starter template.
* Add display none CSS for hide honeypot field.
* Add HTTP referrer (referer) field to log table.

= 1.0.15 =
2025-10-14

* Fix unable to redirect to download file.

= 1.0.14 =
2025-10-13

* Update proper way to enqueue scripts/styles.
* Update management JS, remove usage of jQuery.
* Update download logs JS, remove usage of jQuery.
* Update settings JS to remove usage of jQuery.
* Update GitHubOAuth JS to remove usage of jQuery.
* Update translation.
* Update Ace editor usage to not depend on jQuery.
* Remove unused Ace JS files.

= 1.0.13 =
2025-03-18

* Update load text domain to be inside `init` hook.

= 1.0.12 =
2024-12-12

* Fix `unserialize()` error since PHP 8.3.
* Fix pass `null` to string argument error since PHP 8.1.

= 1.0.11 =
2022-12-20

* Fix "PHP Deprecated: Creation of dynamic property" on PHP 8.2.

Previous version updates:  
Please read on changelog.md