Email Before Download - Version 5.1.9

Version Description

Download this release

Release Info

Developer mandsconsulting
Plugin Icon 128x128 Email Before Download
Version 5.1.9
Comparing to
See all releases

Code changes from version 5.1.8 to 5.1.9

email-before-download.php CHANGED
@@ -11,7 +11,7 @@
11
  * @wordpress-plugin
12
  * Plugin Name: Email Before Download
13
  * Plugin URI: mandsconsulting.com
14
- * Version: 5.1.8
15
  * Author: M&S Consulting
16
  * Author URI: mandsconsulting.com
17
  * License: GPL-2.0+
@@ -24,7 +24,7 @@ if ( ! defined( 'WPINC' ) ) {
24
  die;
25
  }
26
 
27
- define( 'PLUGIN_NAME_VERSION', '5.1.8' );
28
 
29
  function activate_email_before_download() {
30
  require_once plugin_dir_path( __FILE__ ) . 'includes/class-email-before-download-activator.php';
11
  * @wordpress-plugin
12
  * Plugin Name: Email Before Download
13
  * Plugin URI: mandsconsulting.com
14
+ * Version: 5.1.9
15
  * Author: M&S Consulting
16
  * Author URI: mandsconsulting.com
17
  * License: GPL-2.0+
24
  die;
25
  }
26
 
27
+ define( 'PLUGIN_NAME_VERSION', '5.1.9' );
28
 
29
  function activate_email_before_download() {
30
  require_once plugin_dir_path( __FILE__ ) . 'includes/class-email-before-download-activator.php';
includes/class-email-before-download-form.php CHANGED
@@ -32,7 +32,9 @@ class Email_Before_Download_Form
32
  $form = new DOMDocument;
33
  libxml_use_internal_errors(true);
34
  $form->formatOutput = true;
35
- $form->loadHTML(mb_convert_encoding($raw, 'HTML-ENTITIES', 'UTF-8'), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
 
 
36
  $parent = $form->getElementsByTagName('form')->item(0);
37
  $formID = $parent->getAttribute('action');
38
  $tmp = explode('#', $formID);
32
  $form = new DOMDocument;
33
  libxml_use_internal_errors(true);
34
  $form->formatOutput = true;
35
+ $form->loadHTML(mb_convert_encoding($raw, 'HTML-ENTITIES', 'UTF-8'));
36
+ $form->removeChild($form->doctype);
37
+ $form->replaceChild($form->firstChild->firstChild->firstChild, $form->firstChild);
38
  $parent = $form->getElementsByTagName('form')->item(0);
39
  $formID = $parent->getAttribute('action');
40
  $tmp = explode('#', $formID);
readme.txt CHANGED
@@ -106,10 +106,11 @@ This is the list of all short code attributes that can be used. Some of them o
106
 
107
 
108
  == Changelog ==
 
 
109
  =5.1.8=
110
  * Fixed issue with some browsers not showing UTC-8 characters properly
111
  * cleaned up some code to remove PHP warnings
112
-
113
  =5.1.7=
114
  * Fixed issue with some malformed HTML being created by DOMDocument()
115
  =5.1.6=
106
 
107
 
108
  == Changelog ==
109
+ =5.1.9=
110
+ * Changed the way DOMDocument removes wrappers to be compatible with older versions of PHP
111
  =5.1.8=
112
  * Fixed issue with some browsers not showing UTC-8 characters properly
113
  * cleaned up some code to remove PHP warnings
 
114
  =5.1.7=
115
  * Fixed issue with some malformed HTML being created by DOMDocument()
116
  =5.1.6=