From 0e7bcccc50ec737482787a5061f3ab1e1d546a16 Mon Sep 17 00:00:00 2001 From: Marijn Bent Date: Mon, 7 Mar 2022 15:25:26 +0700 Subject: [PATCH] Add upgrade notice for future versions --- includes/core.php | 14 ++ readme.txt | 379 +--------------------------------------- wordproof-timestamp.php | 4 +- 3 files changed, 25 insertions(+), 372 deletions(-) diff --git a/includes/core.php b/includes/core.php index 08d4459..40db93b 100644 --- a/includes/core.php +++ b/includes/core.php @@ -21,6 +21,7 @@ function init() { add_action('activated_plugin', __NAMESPACE__ . "\\activate"); add_action('init', __NAMESPACE__ . "\\onInit"); do_action( 'wordproof_scaffold_init' ); + add_action('in_plugin_update_message-' . WORDPROOF_BASENAME, __NAMESPACE__ . '\\displayUpgradeNotification', 10, 2); } /** @@ -95,3 +96,16 @@ function activate($plugin) { function deactivate() { } + +/** + * Display a upgrade notifications on plugins.php according to line in readme. + * + * @param $currentPluginMetadata + * @param $newPluginMetadata + */ +function displayUpgradeNotification( $currentPluginMetadata, $newPluginMetadata ) { + if ( isset( $newPluginMetadata->upgrade_notice ) && strlen( trim( $newPluginMetadata->upgrade_notice ) ) > 0 ) { + echo '

Important Upgrade Notice: '; + echo esc_html( $newPluginMetadata->upgrade_notice ), '

'; + } +} diff --git a/readme.txt b/readme.txt index ebc1246..7c1ca1e 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: blockchain, timestamp, eosio, eos, telos, web30, copyright, scatter, decen Requires at least: 4.6 Tested up to: 5.9.1 Requires PHP: 7.1.3 -Stable tag: 2.9.13 +Stable tag: 2.9.14 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -80,374 +80,13 @@ Special thanks to the Telos Foundation for co-funding a first version WordProof 4. Change the settings in the WordProof Timestamp plugin options panel. == Changelog == -= 2.9.13 = -*Release date: March 6st, 2022* -* Added support for Yoast SEO integration. += 2.9.14 = +*Release date: March 7th, 2022* +* Added upgrade notice for future versions. -= 2.9.12 = -*Release date: August 31st, 2021* -* Bugfix: Use cache busting CSS versioning -* Bugfix: Stop re-rendering Timestamp widget on edit.php -* Bugfix: Remove unnecessary ajax calls += Earlier versions = +For the changelog of earlier versions, please refer to the version in question. -= 2.9.11 = -*Release date: July 16th, 2021* -* Update for WordPress 5.8 - -= 2.9.10 = -*Release date: May 31st, 2021* -* Hide the certificate link for individual posts or pages. - -= 2.9.9 = -*Release date: March 4th, 2021* -* Fix the cron to stop running after the first timestamp, thanks to @dnwjn. Relevant PR: https://github.com/wordproof/wordproof-timestamp/pull/37 -* Added support for WordPress 5.7 -* Fixed bug with Telos blockchain - -= 2.9.8 = -*Release date: February 27th, 2021* -* Fix for Google Lightspeed CLS score - -= 2.9.7 = -*Release date: February 24th, 2021* -* Fix for manual users, thanks Krijn! -* Many small enhancements - -= 2.9.6 = -*Release date: January 21st, 2021* -* Performance optimisations -* Added an option to hide certificate links on individual post types - -= 2.9.5 = -*Release date: January 13th, 2021* -* Bugfix for Woocommerce integration -* Add setting to hide the certificate from the homepage -* Add setting to hide the certificate from all pages -* Stability fixes - -= 2.9.4 = -*Release date: January 13th, 2021* -* Raised the minimum PHP required -* Properly prefixes composer packages -* Fixed a bug which did not let users dismiss a notice - -= 2.9.3 = -*Release date: January 12th, 2021* -* Fix a bug for saving the site key on new installs - -= 2.9.2 = -*Release date: January 10th, 2021* -* Happy new year! -* The plugin now adheres to the WordPress Coding Standards - -= 2.9.1 = -*Release date: December 29th, 2020* -* Automatic callback url selection - -= 2.9.0 = -*Release date: December 22th, 2020* -* Added REST endpoint as alternative to the default method of receiving webhooks -* Bumped dependencies -* Added composer for including libraries -* Fixed various bugs - -= 2.8.14 = -*Release date: October 28th, 2020* -* Small enhancements to notices - -= 2.8.13 = -*Release date: October 28th, 2020* -* Fix bug with the Bulk timestamp module - -= 2.8.12 = -*Release date: October 8th, 2020* -* WordProof column is hidden by default for some post types -* Timestamp counter is hidden for users without publishing rights -* Bulk timestamping posts has received some small enhancements -* Various bugfixes and enhancements - -= 2.8.11 = -*Release date: September 27th, 2020* -* Support for bulk stamping every post type - -= 2.8.10 = -*Release date: September 4th, 2020* -* Support for Custom Post Types -* Fix for Firefox users - -= 2.8.9 = -*Release date: September 3rd, 2020* -* Fix for sites running PHP < 7.0 - -= 2.8.8 = -*Release date: September 3rd, 2020* -* Fix for some urls to wordproof.io - -= 2.8.7 = -*Release date: September 2nd, 2020* -* Fix small visual bugs - -= 2.8.6 = -*Release date: August 4th, 2020* -* Add support for Ethereum -* Fix user interface bugs - -= 2.8.5 = -*Release date: August 4th, 2020* -* Implemented code style ruleset - -= 2.8.4 = -*Release date: June 2nd, 2020* -* Added frontend performance enhancements! -* Fixed a Gutenberg related bug - -= 2.8.3 = -*Release date: May 28th, 2020* -* Fix for using WordProof Timestamp with Scatter - -= 2.8.2 = -*Release date: May 14th, 2020* -* Updated readme and plugin repository assets - -= 2.8.1 = -*Release date: May 12th, 2020* -* Fix when using the classic editor - -= 2.8.0 = -*Release date: May 8th, 2020* -* Added performance optimizations -* Display background tasks more prominently -* Various small improvements to the user interface -* Fixed minor bugs - -= 2.7.3 = -*Release date: May 4th, 2020* -* Show error if something went wrong creating or sending a transaction to the blockchain - -= 2.7.2 = -*Release date: May 4th, 2020* -* Fix: In some cases, selecting to use WordProof manually did not save properly. Thanks for reporting Francesco! - -= 2.7.1 = -*Release date: April 21st, 2020* -* Various small improvements to the user interface - -= 2.7.0 = -*Release date: February 29th, 2020* -* Improvements to the authentication -* Added a log for most recent timestamped items -* Improved error logging - -= 2.6.2 = -*Release date: February 18th, 2020* -* Added a logger for errors -* Added information to Site Health -* Updated license to GPL 3.0 - -= 2.6.1 = -*Release date: February 10th, 2020* -* Small improvements and bug fixes - -= 2.6.0 = -*Release date: February 8th, 2020* -* We are now using a new authentication method for a more secure connection -* We now support timestamping WooCommerce products -* Added options to sent timestamps to customers when ordering -* MediaObjectTimestamps are now shown on Attachment pages -* Callbacks are now retrieved successfully out-of-the-box for even more server setups -* Fixed small bugs and made various enhancements - -= 2.5.3 = -*Release date: February 1st, 2020* -* A fix for automatic stamping - -= 2.5.2 = -*Release date: February 1st, 2020* -* We now include the hash in the link to wordproof.io/check -* Small bugfix in properly returning the raw text. - -= 2.5.1 = -*Release date: January 22nd, 2020* -* We added support for Edge and IE browsers -* More visual feedback is to different widgets and buttons - -= 2.5.0 = -*Release date: January 13th, 2020* -* Happy new year! -* We are now retrieving revisions using a secured endpoint -* Added many enhancements to the UI - -= 2.4.0 = -*Release date: December 16th, 2019* -* We have made it way easier to see what is going on. -* Styling enhancements - -= 2.3.3 = -*Release date: November 20th, 2019* -* Small fix for inserting the certificate link when a custom DOM selector is used - -= 2.3.2 = -*Release date: November 15th, 2019* -* Add option for additional whitelisted IP's for rare server setups -* Small visual enhancements - -= 2.3.1 = -*Release date: November 13th, 2019* -* Fixed small bugs -* Add filter 'wordproof_hash_post_content' before hashing the content of ArticleTimestamp - -= 2.3.0 = -*Release date: November 12th, 2019* -* Timestamp Standard 0.2.0 is now supported -* Timestamp your Media using the MediaObjectTimestamp standard -* Callback didn't come through? Retry from your the posts overview -* The auto stamper tool is more accessible -* DOM Selector bug is fixed - -= 2.2.0 = -*Release date: October 12th, 2019* -* You are now enjoying our new certificate! We've made it compacter and way easier to digest. - -= 2.1.0 = -*Release date: October 12th, 2019* -* Thanks to the Pull Request by Tomoharu, GetShifter.io users can now use WordProof by setting their custom domain. - -= 2.0.2 = -*Release date: October 5th, 2019* -* Fixed a bug which caused revisions to not show up - -= 2.0.1 = -*Release date: October 3rd, 2019* -* Some visual improvements - -= 2.0.0 = -*Release date: October 1st, 2019* -* Automate the creation of your timestamp by using my.wordproof.io! -* Overhaul of the plugin options - -= 1.2.16 = -*Release date: September 21st, 2019* -* Prepare migration to upgraded WSFY service - -= 1.2.15 = -*Release date: September 3rd, 2019* -* Remove Certificate Text from excerpts in rare cases - -= 1.2.14 = -*Release date: August 22nd, 2019* -* Allow timestamps to be removed. -* Remove Post Column notice for posts that are not published yet. - -= 1.2.13 = -*Release date: August 22nd, 2019* -* Select the post types that are auto-stamped. - -= 1.2.12 = -*Release date: August 21st, 2019* -* Remove certificate link from the REST API and RSS feed -* Ensure content is always encoded - -= 1.2.11 = -*Release date: August 21st, 2019* -* Remove certificate link from excerpts - -= 1.2.10 = -*Release date: August 16th, 2019* -* Various performance and page load improvements - -= 1.2.9 = -*Release date: August 16th, 2019* -* Provide an option to hide the WordProof Post Column for logged in users - -= 1.2.8 = -*Release date: August 12th, 2019* -* Text in the certificate modal is now translatable - -= 1.2.7 = -*Release date: August 8th, 2019* -* Correctly load JS on the autostamp page - -= 1.2.6 = -*Release date: August 8th, 2019* -* Display correct blockchain link for with Telos stamped posts - -= 1.2.5 = -*Release date: August 7th, 2019* -* Fix migration for legacy WSFY clients. - -= 1.2.4 = -*Release date: August 6th, 2019* -* Fix autostamp for large websites. - -= 1.2.3 = -*Release date: August 6th, 2019* -* Fix migration for legacy WSFY clients - -= 1.2.2 = -*Release date: August 6th, 2019* -* Show certificate content on mount - -= 1.2.1 = -*Release date: August 6th, 2019* -* Bugfix: display the timestamp metabox on edit pages - -= 1.2.0 = -*Release date: August 5th, 2019* -* Automate your timestamping using WSFY -* Select output location of the certificate link -* Make use of WebArticleTimestamp 0.1.1 -* Optimize and restructure code -* Fix for the posts timestamp column indicator - -= 1.1.2 = -*Release date: August 4th, 2019* -* Small bug fix to ensure proper encoding of float types - -= 1.1.1 = -*Release date: July 12th, 2019* -* Add customization field - -= 1.1.0 = -*Release date: July 12th, 2019* -* Implement Timestamp Standard -* Various performance and page load improvements - -= 1.0.3 = -*Release date: July 11th, 2019* -* Improved network selection - -= 1.0.2 = -*Release date: July 11th, 2019* -* Improvements to the admin area - -= 1.0.1 = -*Release date: June 28th, 2019* -* Code Optimization -* Page load Optimization -* Resolving various bugs - -= 1.0.0 = -*Release date: June 22nd, 2019* -* Our biggest release yet! Please share your experience with us! - -= 0.6.3 = -*Release date: June 4th, 2019* -* Backwards compatibility fix - -= 0.6.2 = -*Release date: June 3rd, 2019* -* Small styling fix - -= 0.6.1 = -*Release date: May 31st, 2019* -* Bugfix - -= 0.6 = -*Release date: May 30th, 2019* -* Redesigned plugin Options -* WordProof Setup Wizard added -* Front-end blockchain certificate - -= 0.1 = -*Release date: April 5th, 2019* -* Initial release. +== Upgrade Notice == += 3.0.0 = +The is a major overhaul of the plugin. After upgrading, you need to login with your WordProof account again. On sites with a large number of timestamps the migration will take longer. This process will be done in the background. diff --git a/wordproof-timestamp.php b/wordproof-timestamp.php index 6ea18c6..d3b875e 100755 --- a/wordproof-timestamp.php +++ b/wordproof-timestamp.php @@ -3,7 +3,7 @@ * Plugin Name: WordProof Timestamp * Plugin URI: https://wordproof.io/wordproof-timestamp-plugin/ * Description: Timestamp your WordPress content into the blockchain. Instant and without fees. For EOSIO, EOS, Ethereum & Telos. - * Version: 2.9.12 + * Version: 2.9.14 * Author: WordProof * Author URI: https://wordproof.com * License: GPL2 @@ -30,7 +30,7 @@ } -define('WORDPROOF_VERSION', '2.9.13'); +define('WORDPROOF_VERSION', '2.9.14'); define('WORDPROOF_SLUG', 'wordproof'); define('WORDPROOF_ROOT_FILE', __FILE__); define('WORDPROOF_BASENAME', plugin_basename(WORDPROOF_ROOT_FILE));