Version Description
No known upgrade issues.
Download this release
Release Info
Developer | mpwalsh8 |
Plugin | Google Forms |
Version | 0.17 |
Comparing to | |
See all releases |
Code changes from version 0.16 to 0.17
- index.php +2 -2
- readme.txt +3 -0
- wpgform-core.php +3 -1
index.php
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
* Plugin Name: WordPress Google Form
|
5 |
* Plugin URI: http://michaelwalsh.org/wordpress/wordpress-plugins/wpgform/
|
6 |
* Description: Add Google Forms to a WordPress web site. Display a Google Form directly into your posts, pages or sidebar. Style the Google Form to match your existing theme and display a custom confirmation page after form submission.
|
7 |
-
* Version: 0.
|
8 |
-
* Build: 0.
|
9 |
* Last Modified: $WCDATE$
|
10 |
* Author: Mike Walsh
|
11 |
* Author URI: http://www.michaelwalsh.org
|
4 |
* Plugin Name: WordPress Google Form
|
5 |
* Plugin URI: http://michaelwalsh.org/wordpress/wordpress-plugins/wpgform/
|
6 |
* Description: Add Google Forms to a WordPress web site. Display a Google Form directly into your posts, pages or sidebar. Style the Google Form to match your existing theme and display a custom confirmation page after form submission.
|
7 |
+
* Version: 0.17
|
8 |
+
* Build: 0.17.$WCREV$
|
9 |
* Last Modified: $WCDATE$
|
10 |
* Author: Mike Walsh
|
11 |
* Author URI: http://www.michaelwalsh.org
|
readme.txt
CHANGED
@@ -176,6 +176,9 @@ No known upgrade issues.
|
|
176 |
|
177 |
== Changelog ==
|
178 |
|
|
|
|
|
|
|
179 |
= Version 0.16 =
|
180 |
* Fixed bug with *select* input tags. Selected value was not being retained on a multipage form.
|
181 |
* Fixed bug with passing checkbox values. Only one value, the last selected, was being passed for a multiple choice question.
|
176 |
|
177 |
== Changelog ==
|
178 |
|
179 |
+
= Version 0.17 =
|
180 |
+
* Fixed regular expression bug which prevented complex Google Forms from working correctly. Any form which had more than 9 fields or had enough edits such that the form ids contained more than one digit which have been affected by this bug.
|
181 |
+
|
182 |
= Version 0.16 =
|
183 |
* Fixed bug with *select* input tags. Selected value was not being retained on a multipage form.
|
184 |
* Fixed bug with passing checkbox values. Only one value, the last selected, was being passed for a multiple choice question.
|
wpgform-core.php
CHANGED
@@ -268,11 +268,13 @@ class wpGForm
|
|
268 |
// The name of the form fields are munged, they need
|
269 |
// to be restored before the parameters can be posted
|
270 |
|
271 |
-
$patterns = array('/^entry_([0-9])
|
272 |
$replacements = array('entry.\1.\2.', 'entry.\1.') ;
|
273 |
|
274 |
foreach ($_POST as $key => $value)
|
275 |
{
|
|
|
|
|
276 |
// Need to handle parameters passed as array
|
277 |
// values separately because of how Python (used
|
278 |
// Google) handles array arguments differently than
|
268 |
// The name of the form fields are munged, they need
|
269 |
// to be restored before the parameters can be posted
|
270 |
|
271 |
+
$patterns = array('/^entry_([0-9]+)_(single|group)_/', '/^entry_([0-9]+)_/') ;
|
272 |
$replacements = array('entry.\1.\2.', 'entry.\1.') ;
|
273 |
|
274 |
foreach ($_POST as $key => $value)
|
275 |
{
|
276 |
+
//printf('Mapping "%s" -> "%s"</h1>', $key, preg_replace($patterns, $replacements, $key)) ;
|
277 |
+
|
278 |
// Need to handle parameters passed as array
|
279 |
// values separately because of how Python (used
|
280 |
// Google) handles array arguments differently than
|