Google Forms - Version 0.44

Version Description

No known upgrade issues.

Download this release

Release Info

Developer mpwalsh8
Plugin Icon wp plugin Google Forms
Version 0.44
Comparing to
See all releases

Code changes from version 0.43 to 0.44

Files changed (4) hide show
  1. index.php +2 -2
  2. readme.txt +4 -1
  3. wpgform-core.php +4 -4
  4. wpgform-options.php +0 -38
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.43
8
- * Build: 0.43.$WCREV$
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.44
8
+ * Build: 0.44.$WCREV$
9
  * Last Modified: $WCDATE$
10
  * Author: Mike Walsh
11
  * Author URI: http://www.michaelwalsh.org
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.0
6
  Tested up to: 3.4.2
7
- Stable tag: 0.43
8
 
9
  Embeds a published, public Google Form in a WordPress post, page, or widget.
10
 
@@ -204,6 +204,9 @@ No known upgrade issues.
204
 
205
  == Changelog ==
206
 
 
 
 
207
  = Version 0.43 =
208
  * Reimplemented shortcode attribute *br='on'* usinq jQuery instead of preg_replace().
209
  * Reimplemented shortcode attribute *legal='off'* usinq jQuery instead of preg_replace().
4
  Tags: Google Forms, Google Docs, Google, Spreadsheet, shortcode, forms
5
  Requires at least: 3.0
6
  Tested up to: 3.4.2
7
+ Stable tag: 0.44
8
 
9
  Embeds a published, public Google Form in a WordPress post, page, or widget.
10
 
204
 
205
  == Changelog ==
206
 
207
+ = Version 0.44 =
208
+ * Fixed bug preventing options which are enabled by default from being turned off.
209
+
210
  = Version 0.43 =
211
  * Reimplemented shortcode attribute *br='on'* usinq jQuery instead of preg_replace().
212
  * Reimplemented shortcode attribute *legal='off'* usinq jQuery instead of preg_replace().
wpgform-core.php CHANGED
@@ -115,11 +115,11 @@ function wpgform_get_plugin_options()
115
 
116
  $plugin_options = get_option('wpgform_options', $default_options) ;
117
 
 
 
 
118
  foreach ($default_options as $key => $value)
119
- {
120
- if (!array_key_exists($key, $plugin_options))
121
- $plugin_options[$key] = $default_options[$key] ;
122
- }
123
 
124
  return $plugin_options ;
125
  }
115
 
116
  $plugin_options = get_option('wpgform_options', $default_options) ;
117
 
118
+ // If the array key doesn't exist, it means it is a check box option
119
+ // that is not enabled so the array element(s) needs to be set to zero.
120
+
121
  foreach ($default_options as $key => $value)
122
+ if (!array_key_exists($key, $plugin_options)) $plugin_options[$key] = 0 ;
 
 
 
123
 
124
  return $plugin_options ;
125
  }
wpgform-options.php CHANGED
@@ -348,44 +348,6 @@ function wpgform_settings_input()
348
  </label>
349
  </fieldset></td>
350
  </tr>
351
- <!--
352
- <tr valign="top">
353
- <th scope="row"><label>Serialize Post Variables</label></th>
354
- <td><fieldset>
355
- <label for="gform_serialize_post_vars">
356
- <table style="padding: 0px;" border="0" cellpadding="0" cellspacing="0">
357
- <tr>
358
- <td style="padding: 5px 0px; vertical-align: top;">
359
- <input name="wpgform_options[serialize_post_vars]" type="checkbox" id="gform_serialize_post_vars" value="1" <?php //checked('1', $wpgform_options['serialize_post_vars']) ; ?> />
360
- </td>
361
- <td style="padding: 5px;">
362
- Serialize POST data prior to form submission? Enabling this <i><b>may</b></i> help with servers where <a href="http://www.modsecurity.org/">Apache's ModSecurity</a> module is installed. If you're experiencing 403 errors after submitting a form, this may alleviate the problem.
363
- </td>
364
- </tr>
365
- </table>
366
- </label>
367
- </fieldset></td>
368
- </tr>
369
- -->
370
- <!--
371
- <tr valign="top">
372
- <th scope="row"><label>Enable Debug</label></th>
373
- <td><fieldset>
374
- <label for="gform_enable_debug">
375
- <table style="padding: 0px;" border="0" cellpadding="0" cellspacing="0">
376
- <tr>
377
- <td style="padding: 5px 0px; vertical-align: top;">
378
- <input name="wpgform_options[enable_debug]" type="checkbox" id="gform_enable_debug" value="1" <?php checked('1', $wpgform_options['enable_debug']) ; ?> />
379
- </td>
380
- <td style="padding: 5px;">
381
- Enabling debug will collect data during the form rendering and processing process. The data is added to the page footer but hidden with a link appearing above the form which can toggle the display of the debug data. This data is useful when trying to understand why the plugin isn't operating as expected.
382
- </td>
383
- </tr>
384
- </table>
385
- </label>
386
- </fieldset></td>
387
- </tr>
388
- -->
389
  </table>
390
  <br /><br />
391
  <input name="wpgform_options[enable_debug]" type="hidden" id="wpgform_enable_debug" value="<?php echo $wpgform_options['enable_debug'] ; ?>" />
348
  </label>
349
  </fieldset></td>
350
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  </table>
352
  <br /><br />
353
  <input name="wpgform_options[enable_debug]" type="hidden" id="wpgform_enable_debug" value="<?php echo $wpgform_options['enable_debug'] ; ?>" />