Subscribe2 HTML v11.3

Version 11.3 of the Subscribe2 HTML has been released and is available now. This version has been tested on WordPress 4.9.x and 5.0 betas. It requires at least WordPress 3.3.

Current users of Subscribe2 HTML with an active support and upgrade subscription can upgrade using the WordPress plugin admin page.

Version 11.3 contains the enhancements and bug fixes listed below.

  • Fixed error message in older version of WordPress where get_user_locale() function is not available
  • Add additional Unsubscribe email headers when {UNSUBLINK} keyword is used
  • Fixed warning message on Your Subscriptions page
  • Added option to hide V2 ReCaptcha box until text box is clicked
  • Improve ReCaptcha form insertion when above buttons to ensure valid HTML
  • Added noscript tags to ReCaptcha form insertion for browsers that have disabled or have no support for JavaScript
  • Fixed issue with transformation of Gutenberg text box size at default value
  • Extended ‘s2_form’ filter to include shortcode attributes to allow more accurate filtering
  • Extended Widget to pass attribute to indicate Widget use over standard form use
  • Extended ReCpatcha ‘s2_captcha_element’ filter to pass shortcode arguments
  • Fix some notices generated by undefined variables
  • Implement use of WordPress filesystem API
  • Ensure Editor buttons loads when Classic Editor plugin in use with WordPress 5.0
  • Numerous minor code enhancements and fixes

Subscribe2 HTML v11.2

Version 11.2 of the Subscribe2 HTML has been released and is available now. This version has been tested on WordPress 4.9.x. It requires at least WordPress 3.3.

Current users of Subscribe2 HTML with an active support and upgrade subscription can upgrade using the WordPress plugin admin page.

Version 11.2 contains the enhancements and bug fixes listed below.

  • Dropped use of the ‘Precedence’ email header as use is controversial and not widely supported
  • Fix for date appearing in wrong language when authors use different language in WordPress admin to the main site language – thanks to Henk Barreveld
  • Improve barred domains to specifically allow domains – thanks to Ed Zacchini
  • Gutenberg block updated based on changes to the editor
  • Fixed issue that prevented post autosaves in Gutenberg editor
  • Further Coding Standard improvements

Subscribe2 HTML v11.1

Version 11.1 of the Subscribe2 HTML has been released and is available now. This version has been tested on WordPress 4.9.x. It requires at least WordPress 3.3.

Current users of Subscribe2 HTML with an active support and upgrade subscription can upgrade using the WordPress plugin admin page.

Version 11.1 contains the enhancements and bug fixes listed below.

  • Introduces Gutenberg block for those testing the Gutenberg editor
  • Fixed incorrectly labelled string for translation
  • Improve REGEX for the old Subscribe2 token – props @pik256
  • Load external javascripts asynchronously
  • Improve Bulk Management user experience
  • Allow Bulk Management for selected subscribers in Multisite installs
  • Move Display options for Subscriber page to screen option
  • Fixed error messages when using ‘s2_custom_keyword’ hook in digest mode – thanks to Bryan Fogarty
  • Fixed filter reset issue in Subscribers table when sorting by column
  • Added option to move ReCaptcha above the form submit buttons – props Daniel Allen
  • Improvements to the ReCaptcha code
  • Code layout and readability improvements with WordPress Coding Standards
  • Other minor big fixes

Subscribe2 HTML and Gutenberg

tl;dr
The next version of Subscribe2 HTML is coming with a ‘block’ that will work with the Gutenberg editor project. There may be some useful information below for other plugin developers too.


Back in 2017 the team behind WordPress decided to spend some time developing the editor, noting that it had remained pretty much unchanged for several years while other areas of WordPress developed at a pace, it was deemed in need of some tender loving care. The project was dubbed Gutenberg.

I have been spending some time testing Gutenberg to ensure that Subscribe2 HTML will continue to function when the planned release of WordPress 5.0 (no date for the yet) lands in your update page. The good news is, to date I have not noticed any differences in the way WordPress and Subscribe2 HTML work together despite the massive code differences in the editor background and the significant visual changes you’ll see in the editor.

In the next version of Subscribe2 HTML you will get a Gutenberg ‘block’. The ‘block’ is fundamental to the design and functionality of the Gutenberg editor. And Subscribe2 HTML now has a block to insert the Subscribe2 HTML shortcode and configure parameters from in the editor.

One of the biggest struggles I have was ensuring international users are able to translate the ‘block’ code into their language. The Gutenberg approach is to create a POT file from the Javascript code, convert that to a PHP file and then create a global POT file. The seemed like too many steps to me and also needs the use of a Babel plugin (if this is losing you, well it lost me too!).

I therefore wrote a little more PHP to parse through the Javascript block I wrote to expose all of the i18n strings to a PHP file that then get pulled into the normal POT file. My parsing code, should any other plugin developers find it useful is on GitHub.

You can call the script from the command line:
php -f ./pot-helper.php textdomain output-file.php input-file1.js input-file2.js

Or call it using grunt by including grunt-shell in your package.json file and adding the necessary configuration in your Gruntfile.js.

Subscribe2 HTML v11.0

Version 11.0 of the Subscribe2 HTML has been released and is available now. This version has been tested on WordPress 4.8.1, 4.8.2, 4.8.3 and 4.9. It requires at least WordPress 3.3.

Current users of Subscribe2 HTML with an active support and upgrade subscription can upgrade using the WordPress plugin admin page.

Version 11.0 contains the enhancements and bug fixes listed below.

  • BIG New Feature – option to add ReCaptcha to the Subscribe2 sign up forms
  • New Feature – REST API class added, disabled by default but there for those that want it
  • Fixed SQL error on Uninstalling that results in failure to drop plugin tables – thanks to SemperPlugins
  • Updated to current version of Plugin update checking code
  • Fixed a PHP Warning notice for PHP 7.0 and above
  • Fixed undefined variable PHP warning in Digest email function
  • Improve HTML character decoding for plain text emails
  • Change input type from ‘text’ to ’email’ on the subscribe form – will improve keyboard layout on mobile device
  • Fix for apparent failure when Toggling Public Subscribers in the admin area caused by JavaScript suppressing page reload
  • Minor code layout corrections consistent with WordPress Coding Standards
  • Abstracted and improved upon the WordPress core email validation function
  • Fixed bug affecting display of Registered Users when using WordPress multisite – thanks to @theinich
  • Ensure Content Type is explicitly set for all HTML and Plain Text emails
  • Other minor bug fixes and improvements
  • Tested on WordPress 4.8.1, 4.8.2, 4.8.3 and 4.9 (Betas, Release Candidates and Final Release)

Subscribe2 HTML v10.15

Version 10.15 of the Subscribe2 HTML was released about four weeks ago and is available now. This version has been tested on WordPress 4.7.4 and 4.7.5 and 4.8. It requires at least WordPress 3.3.

Current users of Subscribe2 HTML with an active support and upgrade subscription can upgrade using the WordPress plugin admin page.

Version 10.15 contains the enhancements and bug fixes listed below.

  • Introduced a more robust way of collecting remote IP addresses for logging subscription requests in PHP4
  • Introduced a method for updating for IP address using client side javascript – useful when site pages are cached
  • Improved Accessibility for Subscribe2 menus in keeping with planned changes for WordPress 4.8
  • Dropped legacy use of screen icons for admin pages to allowed continued compatibility with older WordPress versions
  • Correct capitalisation of the Return-Path email header – props Kyle Johnson
  • Introduced a feature to allow preview email to be sent while editing content, even in draft status – suggested by silverback
  • Other minor bug fixes and enhancements
  • Tested on WordPress 4.7.4, 4.7.5 and 4.8

Subscribe2 HTML v10.14

Version 10.14 of the Subscribe2 HTML was released about four weeks ago and is available now. This version has been tested on WordPress 4.7.2 and 4.7.3. It requires at least WordPress 3.3.

Current users of Subscribe2 HTML with an active support and upgrade subscription can upgrade using the WordPress plugin admin page.

Version 10.14 contains the enhancements and bug fixes listed below.

  • Fixed display of update messages on the Plugins page
  • Added setting to allow display of Registered Subscriber form on the front end
  • Make ‘Sender’ error notice on Subscribe2->Settings page dismissable
  • Add security measures to AJAX form
  • Further improvements to code layout and file naming using WordPress Code Sniffer Coding Standards
  • Tested on WordPress 4.7.2 and 4.7.3