Version Description
No known upgrade issues.
Download this release
Release Info
Developer | mpwalsh8 |
Plugin | Google Forms |
Version | 0.78 |
Comparing to | |
See all releases |
Code changes from version 0.77 to 0.78
- index.php +3 -3
- languages/wpgform-fr_FR.mo +0 -0
- languages/wpgform-fr_FR.po +1 -1
- readme.txt +4 -1
- wpgform-core.php +9 -4
index.php
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
* Plugin Name: Google Forms
|
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
|
@@ -25,7 +25,7 @@
|
|
25 |
*
|
26 |
*/
|
27 |
|
28 |
-
define('WPGFORM_VERSION', '0.
|
29 |
|
30 |
require_once('wpgform-core.php') ;
|
31 |
require_once('wpgform-post-type.php') ;
|
4 |
* Plugin Name: Google Forms
|
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.78
|
8 |
+
* Build: 0.78.$WCREV$
|
9 |
* Last Modified: $WCDATE$
|
10 |
* Author: Mike Walsh
|
11 |
* Author URI: http://www.michaelwalsh.org
|
25 |
*
|
26 |
*/
|
27 |
|
28 |
+
define('WPGFORM_VERSION', '0.78') ;
|
29 |
|
30 |
require_once('wpgform-core.php') ;
|
31 |
require_once('wpgform-post-type.php') ;
|
languages/wpgform-fr_FR.mo
CHANGED
Binary file
|
languages/wpgform-fr_FR.po
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WordPress Google Form\n"
|
4 |
"POT-Creation-Date: 2015-04-09 01:46-0000\n"
|
5 |
-
"PO-Revision-Date: 2015-04
|
6 |
"Last-Translator: Mike Walsh <mpwalsh8@gmail.com>\n"
|
7 |
"Language-Team: Mike Walsh (@mpwalsh8) <mpwalsh8@gmail.com>\n"
|
8 |
"Language: fr_FR\n"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WordPress Google Form\n"
|
4 |
"POT-Creation-Date: 2015-04-09 01:46-0000\n"
|
5 |
+
"PO-Revision-Date: 2015-05-04 16:41-0000\n"
|
6 |
"Last-Translator: Mike Walsh <mpwalsh8@gmail.com>\n"
|
7 |
"Language-Team: Mike Walsh (@mpwalsh8) <mpwalsh8@gmail.com>\n"
|
8 |
"Language: fr_FR\n"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: Google Forms, Google Docs, Google, Spreadsheet, shortcode, forms
|
5 |
Requires at least: 3.7.1
|
6 |
Tested up to: 4.1.2
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -381,6 +381,9 @@ No known upgrade issues.
|
|
381 |
|
382 |
== Change log ==
|
383 |
|
|
|
|
|
|
|
384 |
= Version 0.77 =
|
385 |
* Minor fixes to eliminate PHP warnings when using deprecated gform shortcode.
|
386 |
* Fixed bug with CSS prefix and suffix not being added to CSS classes.
|
4 |
Tags: Google Forms, Google Docs, Google, Spreadsheet, shortcode, forms
|
5 |
Requires at least: 3.7.1
|
6 |
Tested up to: 4.1.2
|
7 |
+
Stable tag: 0.78
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
381 |
|
382 |
== Change log ==
|
383 |
|
384 |
+
= Version 0.78 =
|
385 |
+
* Bug fix for required validation field with spaces in the optional message.
|
386 |
+
|
387 |
= Version 0.77 =
|
388 |
* Minor fixes to eliminate PHP warnings when using deprecated gform shortcode.
|
389 |
* Fixed bug with CSS prefix and suffix not being added to CSS classes.
|
wpgform-core.php
CHANGED
@@ -1288,11 +1288,19 @@ jQuery(document).ready(function($) {
|
|
1288 |
|
1289 |
if (!empty($value))
|
1290 |
{
|
1291 |
-
if ($meta_type[$key] == 'regex')
|
1292 |
{
|
1293 |
$extras[$value][] = sprintf('%s: "%s"',
|
1294 |
$meta_type[$key], empty($meta_value[$key]) ? 'true' : $meta_value[$key]) ;
|
1295 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1296 |
else
|
1297 |
{
|
1298 |
$extras[$value][] = sprintf('%s: %s',
|
@@ -1331,11 +1339,9 @@ jQuery(document).ready(function($) {
|
|
1331 |
$("div.error span").html(message);
|
1332 |
$("div.error").show();
|
1333 |
//$("div.error-message").show();
|
1334 |
-
//alert("errors ...");
|
1335 |
} else {
|
1336 |
$("div.error").hide();
|
1337 |
//$("div.error-message").hide();
|
1338 |
-
//alert("no errors ...");
|
1339 |
}
|
1340 |
},
|
1341 |
//errorClass: "wpgform-error",
|
@@ -1552,7 +1558,6 @@ jQuery(document).ready(function($) {
|
|
1552 |
//$js .= PHP_EOL . ' $("body").load("' . $confirm . ' body") ;' ;
|
1553 |
$js .= PHP_EOL . ' $.get( "' . $confirm . '", function( data ) {
|
1554 |
$( ".result" ).html( data );
|
1555 |
-
//alert( "Load was performed." );
|
1556 |
});' ;
|
1557 |
|
1558 |
}
|
1288 |
|
1289 |
if (!empty($value))
|
1290 |
{
|
1291 |
+
if ($meta_type[$key] == 'regex')
|
1292 |
{
|
1293 |
$extras[$value][] = sprintf('%s: "%s"',
|
1294 |
$meta_type[$key], empty($meta_value[$key]) ? 'true' : $meta_value[$key]) ;
|
1295 |
}
|
1296 |
+
elseif ($meta_type[$key] == 'required')
|
1297 |
+
{
|
1298 |
+
// $extras[$value][] = sprintf('%s: "%s"',
|
1299 |
+
// $meta_type[$key], empty($meta_value[$key]) ? 'true' : $meta_value[$key]) ;
|
1300 |
+
$vRules_js[] = sprintf(' "%s": { required: true }', $value) ;
|
1301 |
+
if (!empty($meta_value[$key]))
|
1302 |
+
$vMsgs_js[] = sprintf(' "%s": "%s"', $value, $meta_value[$key]) ;
|
1303 |
+
}
|
1304 |
else
|
1305 |
{
|
1306 |
$extras[$value][] = sprintf('%s: %s',
|
1339 |
$("div.error span").html(message);
|
1340 |
$("div.error").show();
|
1341 |
//$("div.error-message").show();
|
|
|
1342 |
} else {
|
1343 |
$("div.error").hide();
|
1344 |
//$("div.error-message").hide();
|
|
|
1345 |
}
|
1346 |
},
|
1347 |
//errorClass: "wpgform-error",
|
1558 |
//$js .= PHP_EOL . ' $("body").load("' . $confirm . ' body") ;' ;
|
1559 |
$js .= PHP_EOL . ' $.get( "' . $confirm . '", function( data ) {
|
1560 |
$( ".result" ).html( data );
|
|
|
1561 |
});' ;
|
1562 |
|
1563 |
}
|