Google Forms - Version 0.52

Version Description

No known upgrade issues.

Download this release

Release Info

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

Code changes from version 0.51 to 0.52

Files changed (4) hide show
  1. index.php +3 -3
  2. readme.txt +5 -1
  3. wpgform-core.php +3 -4
  4. wpgform-options.php +1 -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.51
8
- * Build: 0.51.$WCREV$
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.51') ;
29
 
30
  require_once('wpgform-core.php') ;
31
  require_once('wpgform-post-type.php') ;
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.52
8
+ * Build: 0.52.$WCREV$
9
  * Last Modified: $WCDATE$
10
  * Author: Mike Walsh
11
  * Author URI: http://www.michaelwalsh.org
25
  *
26
  */
27
 
28
+ define('WPGFORM_VERSION', '0.52') ;
29
 
30
  require_once('wpgform-core.php') ;
31
  require_once('wpgform-post-type.php') ;
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.3
6
  Tested up to: 3.5.1
7
- Stable tag: 0.51
8
 
9
  Embeds a published, public Google Form in a WordPress post, page, or widget.
10
 
@@ -316,6 +316,10 @@ No known upgrade issues.
316
 
317
  == Changelog ==
318
 
 
 
 
 
319
  = Version 0.51 =
320
  * Added FAQ content for common questions.
321
  * Updated CSS information to account for CSS changes in new Google Forms.
4
  Tags: Google Forms, Google Docs, Google, Spreadsheet, shortcode, forms
5
  Requires at least: 3.3
6
  Tested up to: 3.5.1
7
+ Stable tag: 0.52
8
 
9
  Embeds a published, public Google Form in a WordPress post, page, or widget.
10
 
316
 
317
  == Changelog ==
318
 
319
+ = Version 0.52 =
320
+ * Fixed typos on Options page.
321
+ * Fixed long standing bug with Default Options sometimes not initializing or saving correctly.
322
+
323
  = Version 0.51 =
324
  * Added FAQ content for common questions.
325
  * Updated CSS information to account for CSS changes in new Google Forms.
wpgform-core.php CHANGED
@@ -170,14 +170,13 @@ function wpgform_get_plugin_options()
170
  // Since the array keys are used to build the form, we need for them
171
  // to "exist" so if they don't, they are created and set to null.
172
 
173
- //$plugin_options = array_merge($default_options, get_option('wpgform_options', $default_options)) ;
174
- $plugin_options = wp_parse_args(get_option('wpgform_options', $default_options)) ;
175
 
176
  // If the array key doesn't exist, it means it is a check box option
177
  // that is not enabled so the array element(s) needs to be set to zero.
178
 
179
- foreach ($default_options as $key => $value)
180
- if (!array_key_exists($key, $plugin_options)) $plugin_options[$key] = 0 ;
181
 
182
  return $plugin_options ;
183
  }
170
  // Since the array keys are used to build the form, we need for them
171
  // to "exist" so if they don't, they are created and set to null.
172
 
173
+ $plugin_options = wp_parse_args(get_option('wpgform_options'), $default_options) ;
 
174
 
175
  // If the array key doesn't exist, it means it is a check box option
176
  // that is not enabled so the array element(s) needs to be set to zero.
177
 
178
+ //foreach ($default_options as $key => $value)
179
+ // if (!array_key_exists($key, $plugin_options)) $plugin_options[$key] = 0 ;
180
 
181
  return $plugin_options ;
182
  }
wpgform-options.php CHANGED
@@ -171,7 +171,7 @@ function wpgform_options_page()
171
  <div class="inside">
172
  <div style="text-align: center; font-size: 0.75em;padding:0px 5px;margin:0px auto;"><!-- PayPal box wrapper -->
173
  <div><!-- PayPal box-->
174
- <p style="margin: 0.25em 0"><b>WordPress Goolge Forms v<?php echo WPGFORM_VERSION; ?></b></p>
175
  <p style="margin: 0.25em 0"><a href="http://wordpress.org/extend/plugins/wpgform/" target="_blank"><?php _e('Plugin\'s Home Page', MAILUSERS_I18N_DOMAIN); ?></a></p>
176
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
177
  <input type="hidden" name="cmd" value="_s-xclick">
171
  <div class="inside">
172
  <div style="text-align: center; font-size: 0.75em;padding:0px 5px;margin:0px auto;"><!-- PayPal box wrapper -->
173
  <div><!-- PayPal box-->
174
+ <p style="margin: 0.25em 0"><b>WordPress Google Form v<?php echo WPGFORM_VERSION; ?></b></p>
175
  <p style="margin: 0.25em 0"><a href="http://wordpress.org/extend/plugins/wpgform/" target="_blank"><?php _e('Plugin\'s Home Page', MAILUSERS_I18N_DOMAIN); ?></a></p>
176
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
177
  <input type="hidden" name="cmd" value="_s-xclick">