From db39b893240d754b08f29a5bc83bbcfd825453d4 Mon Sep 17 00:00:00 2001 From: Robert DeVore Date: Fri, 4 Dec 2020 21:55:14 -0500 Subject: [PATCH] :rocket: RELEASE v2.0 --- README.txt | 17 +++++++++++++++-- docupress.php | 9 +++++++-- includes/class-docupress.php | 7 +++++-- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/README.txt b/README.txt index f1bd78b..5d73b41 100644 --- a/README.txt +++ b/README.txt @@ -3,8 +3,8 @@ Contributors: deviodigital Donate link: https://deviodigital.com Tags: documentation, document, knowledgebase, help, support, notes Requires at least: 3.0.1 -Tested up to: 5.2.3 -Stable tag: 1.3 +Tested up to: 5.5.3 +Stable tag: 2.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -20,6 +20,7 @@ DocuPress also comes with 2 custom widgets: * Collections - output's a list of every collection you create with DocuPress. * Recent Articles - select how many articles to display, randomize the output order and also choose which collection you'd like to display articles from. +* Related Articles - select how many articles to display and randomize the output order in this widget that will only display when viewing a single article. == Installation == @@ -31,9 +32,21 @@ DocuPress also comes with 2 custom widgets: 1. DocuPress adds a `Documentation` tab to your admin dashboard 2. DocuPress widget, available via `Appearance - Widgets` +3. DocuPress shortcode display +4. DocuPress single article display == Changelog == += 2.0 = +* Added "Was this article helpful?" section to the bottom of single articles in `admin/docupress-article-ratings.php` +* Added an estimated reading time to the beginning of single articles in `admin/docupress-article-ratings.php` +* Added 2 filters to the `[docupress]` shortcode in `admin/docupress-shortcodes.php ` +* Updated shortcode list style in `public/css/docupress-public.css` +* Updated activator and deactivator class names in `docupress.php` +* Updated metabox with checkbox to hide estimated reading time in `admin/docupress-metaboxes.php` +* Updated `.pot` file for translation in `languages/docupress.pot` +* General code cleanup throughout multiple files in the plugin + = 1.3 = * Added new `[docupress]` shortcode in `admin/docupress-shortcodes.php` * Updated `.pot` file for translation in `languages/docupress.pot` diff --git a/docupress.php b/docupress.php index 5ab474a..6a80301 100644 --- a/docupress.php +++ b/docupress.php @@ -11,8 +11,8 @@ * Plugin Name: DocuPress * Plugin URI: https://www.robertdevore.com/docupress * Description: Documentation simplified. - * Version: 1.3.1 - * Author: Robert DeVore + * Version: 2.0 + * Author: Devio Digital * Author URI: https://deviodigital.com * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt @@ -25,6 +25,11 @@ die; } +/** + * Current plugin version. + */ +define( 'DOCUPRESS_VERSION', '2.0' ); + /** * The code that runs during plugin activation. * This action is documented in includes/class-docupress-activator.php diff --git a/includes/class-docupress.php b/includes/class-docupress.php index bfe768f..07ec069 100644 --- a/includes/class-docupress.php +++ b/includes/class-docupress.php @@ -67,9 +67,12 @@ class DocuPress { * @since 1.0.0 */ public function __construct() { + $this->plugin_name = 'docupress'; + $this->version = '2.0'; - $this->plugin_name = 'DocuPress'; - $this->version = '1.3'; + if ( defined( 'DOCUPRESS_VERSION' ) ) { + $this->version = DOCUPRESS_VERSION; + } $this->load_dependencies(); $this->set_locale();