WPtouch - Version 4.3.31

Version Description

Download this release

Release Info

Developer wptouch
Plugin Icon 128x128 WPtouch
Version 4.3.31
Comparing to
See all releases

Code changes from version 4.3.30 to 4.3.31

core/admin-settings.php CHANGED
@@ -107,29 +107,32 @@ function wptouch_settings_process( $wptouch_pro ) {
107
  $allowed_tags = wp_kses_allowed_html( 'post' );
108
  // Add script tag and attributes to allowed tags.
109
  $allowed_tags = wp_parse_args( array(
110
- 'script' => array(
111
- 'class' => true,
112
- 'id' => true,
113
- 'src' => true,
114
- 'type' => true,
115
- 'async' => true,
116
- 'crossorigin' => true,
117
- 'defer' => true,
118
- 'importance' => true,
119
- 'integrity' => true,
120
- 'nomodule' => true,
121
- 'nonce' => true,
122
- 'text' => true,
123
- 'charset' => true,
124
- 'language' => true,
125
- ),
126
- 'noscript' => array (
127
- 'class' => true,
128
- 'id' => true,
129
- 'style' => true,
130
- ),
131
  ), $allowed_tags );
 
 
132
  $value = wp_kses( $value, $allowed_tags );
 
133
  } else {
134
  $value = wptouch_sanitize_value( $value );
135
  }
107
  $allowed_tags = wp_kses_allowed_html( 'post' );
108
  // Add script tag and attributes to allowed tags.
109
  $allowed_tags = wp_parse_args( array(
110
+ 'script' => array(
111
+ 'class' => true,
112
+ 'id' => true,
113
+ 'src' => true,
114
+ 'type' => true,
115
+ 'async' => true,
116
+ 'crossorigin' => true,
117
+ 'defer' => true,
118
+ 'importance' => true,
119
+ 'integrity' => true,
120
+ 'nomodule' => true,
121
+ 'nonce' => true,
122
+ 'text' => true,
123
+ 'charset' => true,
124
+ 'language' => true,
125
+ ),
126
+ 'noscript' => array (
127
+ 'class' => true,
128
+ 'id' => true,
129
+ 'style' => true,
130
+ ),
131
  ), $allowed_tags );
132
+ // Replace CDATA tags with placeholders that wp_kses won't strip out, sanitize, then swap them out again.
133
+ $value = str_replace( array( '<![CDATA[', ']]>' ), array( '{cdatastart}', '{cdataend}' ), $value );
134
  $value = wp_kses( $value, $allowed_tags );
135
+ $value = str_replace( array( '{cdatastart}', '{cdataend}' ), array( '<![CDATA[', ']]>' ), $value );
136
  } else {
137
  $value = wptouch_sanitize_value( $value );
138
  }
lang/wptouch.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the WPtouch Mobile Plugin package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPtouch Mobile Plugin 4.3.30\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wptouch\n"
7
- "POT-Creation-Date: 2018-10-24 19:47:44+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -2533,9 +2533,9 @@ msgstr ""
2533
  msgid "WPtouch Mobile Plugin"
2534
  msgstr ""
2535
 
2536
- #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.30) #-#-#-#-#
2537
  #. Plugin URI of the plugin/theme
2538
- #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.30) #-#-#-#-#
2539
  #. Author URI of the plugin/theme
2540
  msgid "http://www.wptouch.com/"
2541
  msgstr ""
2
  # This file is distributed under the same license as the WPtouch Mobile Plugin package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPtouch Mobile Plugin 4.3.31\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wptouch\n"
7
+ "POT-Creation-Date: 2018-10-29 21:35:24+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2533
  msgid "WPtouch Mobile Plugin"
2534
  msgstr ""
2535
 
2536
+ #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.31) #-#-#-#-#
2537
  #. Plugin URI of the plugin/theme
2538
+ #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.31) #-#-#-#-#
2539
  #. Author URI of the plugin/theme
2540
  msgid "http://www.wptouch.com/"
2541
  msgstr ""
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: wptouch, sureswiftcapital, duanestorey, dalemugford, adamdipardo, oxymoron
3
  Tags: wptouch, iphone, ipod, bravenewcode, mobile, mobile-friendly, android, blackberry, smartphone, responsive, design, mobile plugin, ios, mobile theme
4
  Requires at least: 4.2
5
- Stable tag: 4.3.30
6
  Tested up to: 4.9
7
  License: GPLv2
8
 
@@ -33,6 +33,10 @@ For more information visit [WPtouch.com](http://www.wptouch.com/?utm_campaign=wp
33
 
34
  == Changelog ==
35
 
 
 
 
 
36
  = Version 4.3.30 (October 19th, 2018) =
37
 
38
  * Fixed: Script tag attributes being stripped from custom analytics text area entries.
2
  Contributors: wptouch, sureswiftcapital, duanestorey, dalemugford, adamdipardo, oxymoron
3
  Tags: wptouch, iphone, ipod, bravenewcode, mobile, mobile-friendly, android, blackberry, smartphone, responsive, design, mobile plugin, ios, mobile theme
4
  Requires at least: 4.2
5
+ Stable tag: 4.3.31
6
  Tested up to: 4.9
7
  License: GPLv2
8
 
33
 
34
  == Changelog ==
35
 
36
+ = Version 4.3.31 (October 29th, 2018) =
37
+
38
+ * Fixed: Prevent CDATA tags being stripped from custom analytics text area entries.
39
+
40
  = Version 4.3.30 (October 19th, 2018) =
41
 
42
  * Fixed: Script tag attributes being stripped from custom analytics text area entries.
themes/bauhaus/default/header-bottom.php CHANGED
File without changes
themes/bauhaus/default/page-content.php CHANGED
File without changes
themes/bauhaus/default/single.php CHANGED
File without changes
wptouch.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: WPtouch Mobile Plugin
4
  Plugin URI: http://www.wptouch.com/
5
- Version: 4.3.30
6
  Description: Make a beautiful mobile-friendly version of your website with just a few clicks.
7
  Author: WPtouch
8
  Author URI: http://www.wptouch.com/
@@ -14,7 +14,7 @@
14
 
15
  function wptouch_create_four_object() {
16
  if ( !defined( 'WPTOUCH_IS_PRO' ) ) {
17
- define( 'WPTOUCH_VERSION', '4.3.30' );
18
 
19
  define( 'WPTOUCH_BASE_NAME', basename( __FILE__, '.php' ) . '.php' );
20
  define( 'WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename( __FILE__, '.php' ) );
2
  /*
3
  Plugin Name: WPtouch Mobile Plugin
4
  Plugin URI: http://www.wptouch.com/
5
+ Version: 4.3.31
6
  Description: Make a beautiful mobile-friendly version of your website with just a few clicks.
7
  Author: WPtouch
8
  Author URI: http://www.wptouch.com/
14
 
15
  function wptouch_create_four_object() {
16
  if ( !defined( 'WPTOUCH_IS_PRO' ) ) {
17
+ define( 'WPTOUCH_VERSION', '4.3.31' );
18
 
19
  define( 'WPTOUCH_BASE_NAME', basename( __FILE__, '.php' ) . '.php' );
20
  define( 'WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename( __FILE__, '.php' ) );