diff --git a/README.md b/README.md index ba6e8f8..853eafb 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,12 @@ You can also: Attachments are uploaded to the WordPress Media Library and deleted along with the comment (if this is set in the settings). +REST API is supported. + DCO Comment Attachment is also available on [WordPress.org](https://wordpress.org/plugins/dco-comment-attachment/). # Version -2.2.0 +2.3.0 [![Build Status](https://travis-ci.org/yadenis/DCO-Comment-Attachment.svg?branch=master)](https://travis-ci.org/yadenis/DCO-Comment-Attachment) @@ -45,6 +47,13 @@ DCO Comment Attachment tested with: Feel free to create [a new issue](https://github.com/yadenis/DCO-Comment-Attachment/issues) if you need integration with another plugin. # Changelog +## 2.3.0 +- Added allowed file types to the file input dialog box. +- Added REST API support (thank you [@daohoangson](https://github.com/daohoangson)) +- Added `dco_ca_force_download_misc_attachments` filter for force download files instead of open. +- Improved check/uncheck allowed file types on Settings page. (thank you [@DuckDivers](https://github.com/DuckDivers)) +- Fixed "Trying to get property ‘comment_ID’ of non-object" bug. + ## 2.2.0 - Added drag and drop support for attachment input field. - Improved "Link thumbnail?" option. Link to a new tab (thank you [@graylaurenm](https://github.com/graylaurenm)) and an attachment page is now supported. diff --git a/dco-comment-attachment.php b/dco-comment-attachment.php index 24bbeed..1d932d6 100644 --- a/dco-comment-attachment.php +++ b/dco-comment-attachment.php @@ -12,7 +12,7 @@ * Plugin Name: DCO Comment Attachment * Plugin URI: https://denisco.pro/dco-comment-attachment/ * Description: Allows your visitors to attach files with their comments - * Version: 2.2.0 + * Version: 2.3.0 * Author: Denis Yanchevskiy * Author URI: https://denisco.pro * License: GPLv2 or later @@ -24,7 +24,7 @@ define( 'DCO_CA_URL', plugin_dir_url( __FILE__ ) ); define( 'DCO_CA_PATH', plugin_dir_path( __FILE__ ) ); define( 'DCO_CA_BASENAME', plugin_basename( __FILE__ ) ); -define( 'DCO_CA_VERSION', '2.2.0' ); +define( 'DCO_CA_VERSION', '2.3.0' ); require_once DCO_CA_PATH . 'includes/functions.php'; diff --git a/readme.txt b/readme.txt index f275457..4a05e00 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: comment, comment attachment, attachment, image, video Requires at least: 4.6 Tested up to: 5.8 Requires PHP: 5.6 -Stable tag: 2.2.0 +Stable tag: 2.3.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Donate link: https://www.donationalerts.com/r/denisco @@ -38,6 +38,8 @@ You can also: Attachments are uploaded to the WordPress Media Library and deleted along with the comment (if this is set in the settings). +REST API is supported. + DCO Comment Attachment is also available on [GitHub](https://github.com/yadenis/DCO-Comment-Attachment). == Installation == @@ -59,6 +61,13 @@ Feel free to create [a new topic](https://wordpress.org/support/plugin/dco-comme == Changelog == += 2.3.0 = +* Added allowed file types to the file input dialog box. (thank you [@pranciskus](https://profiles.wordpress.org/pranciskus/)) +* Added REST API support (thank you [@daohoangson](https://profiles.wordpress.org/daohoangson/)) +* Added `dco_ca_force_download_misc_attachments` filter for force download files instead of open. +* Improved check/uncheck allowed file types on Settings page. +* Fixed "Trying to get property ‘comment_ID’ of non-object" bug. (thank you [@pranciskus](https://profiles.wordpress.org/pranciskus/)) + = 2.2.0 = * Added drag and drop support for attachment input field. * Improved "Link thumbnail?" option. Link to a new tab and an attachment page (thank you [@nourijp](https://profiles.wordpress.org/nourijp/)) is now supported. @@ -122,4 +131,5 @@ Feel free to create [a new topic](https://wordpress.org/support/plugin/dco-comme 4. Screen for editing a comment in the admin panel. 5. Plugin settings page. 6. An example of a lightbox with the Simple Lightbox plugin. -7. An example of a drag and drop support. \ No newline at end of file +7. An example of a drag and drop support. +8. An example of REST API support. \ No newline at end of file