Google Forms - Version 0.74

Version Description

No known upgrade issues.

Download this release

Release Info

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

Code changes from version 0.73 to 0.74

Files changed (4) hide show
  1. index.php +3 -3
  2. readme.txt +4 -1
  3. wpgform-core.php +0 -6
  4. wpgform-post-type.php +0 -3
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.73
8
- * Build: 0.73.$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.73') ;
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.74
8
+ * Build: 0.74.$WCREV$
9
  * Last Modified: $WCDATE$
10
  * Author: Mike Walsh
11
  * Author URI: http://www.michaelwalsh.org
25
  *
26
  */
27
 
28
+ define('WPGFORM_VERSION', '0.74') ;
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.7.1
6
  Tested up to: 4.1.1
7
- Stable tag: 0.73
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.73 =
385
  * Added support for form specific button override text.
386
  * Updated jQuery Validate to 1.13.1.
4
  Tags: Google Forms, Google Docs, Google, Spreadsheet, shortcode, forms
5
  Requires at least: 3.7.1
6
  Tested up to: 4.1.1
7
+ Stable tag: 0.74
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.73 =
385
+ * Debugging messages sent to PHP error log removed.
386
+
387
  = Version 0.73 =
388
  * Added support for form specific button override text.
389
  * Updated jQuery Validate to 1.13.1.
wpgform-core.php CHANGED
@@ -135,7 +135,6 @@ function wpgform_init()
135
  */
136
  function wpgform_the_content($content)
137
  {
138
- //error_log(sprintf('%s::%s', basename(__FILE__), __LINE__)) ;
139
  return (WPGFORM_CPT_FORM == get_post_type(get_the_ID())) ?
140
  sprintf('[wpgform id=\'%s\']', get_the_ID()) : $content ;
141
  }
@@ -828,7 +827,6 @@ class wpGForm
828
 
829
  // Column order?
830
  $columnorder = $o['columnorder'] == 'right-to-left' ? 'right' : 'left' ;
831
- error_log(print_r($o, true)) ;
832
 
833
  // The Unite theme from Paralleus mucks with the submit buttons
834
  // which breaks the ability to submit the form to Google correctly.
@@ -1027,7 +1025,6 @@ class wpGForm
1027
 
1028
  // Handle "submit another response" link
1029
  //$patterns[] = '/' . $form . '/' ;
1030
- //error_log($form) ;
1031
  //$replacements[] = "ZZZ" ;
1032
 
1033
  // Process HTML replacements
@@ -1566,9 +1563,6 @@ jQuery(document).ready(function($) {
1566
  // Tidy up Javascript to ensure it isn't affected by 'the_content' filters
1567
  //$js = preg_replace($patterns, $replacements, $js) . PHP_EOL ;
1568
 
1569
- //error_log(sprintf('%s::%s --> %s', basename(__FILE__), __LINE__, self::$wpgform_user_sendto)) ;
1570
- //error_log(sprintf('%s::%s --> %s', basename(__FILE__), __LINE__,
1571
- //print_r(array(self::$posted, $action, $email, self::$wpgform_user_sendto), true))) ;
1572
  // Send email?
1573
  if (self::$posted && is_null($action) && ($email || $user_email))
1574
  {
135
  */
136
  function wpgform_the_content($content)
137
  {
 
138
  return (WPGFORM_CPT_FORM == get_post_type(get_the_ID())) ?
139
  sprintf('[wpgform id=\'%s\']', get_the_ID()) : $content ;
140
  }
827
 
828
  // Column order?
829
  $columnorder = $o['columnorder'] == 'right-to-left' ? 'right' : 'left' ;
 
830
 
831
  // The Unite theme from Paralleus mucks with the submit buttons
832
  // which breaks the ability to submit the form to Google correctly.
1025
 
1026
  // Handle "submit another response" link
1027
  //$patterns[] = '/' . $form . '/' ;
 
1028
  //$replacements[] = "ZZZ" ;
1029
 
1030
  // Process HTML replacements
1563
  // Tidy up Javascript to ensure it isn't affected by 'the_content' filters
1564
  //$js = preg_replace($patterns, $replacements, $js) . PHP_EOL ;
1565
 
 
 
 
1566
  // Send email?
1567
  if (self::$posted && is_null($action) && ($email || $user_email))
1568
  {
wpgform-post-type.php CHANGED
@@ -64,7 +64,6 @@ function wpgform_register_post_types()
64
  /** Perform routine maintenance */
65
  function wpgform_routine_maintenance()
66
  {
67
- //error_log(sprintf('%s::%s (init)', basename(__FILE__), __LINE__)) ;
68
  // Post type is registered, do some hygiene on any that exist in the database.
69
  // Insert the "wpgform" shortcode for that post into the post content. This
70
  // ensures the form will be displayed properly when viewed through the CPT URL.
@@ -1074,9 +1073,7 @@ function wpgform_admin_footer_hook()
1074
  {
1075
  global $post ;
1076
  $screen = get_current_screen() ;
1077
- error_log(print_r(get_current_screen(), true)) ;
1078
 
1079
- //if (get_post_type($post) == WPGFORM_CPT_FORM)
1080
  if ($screen->post_type == WPGFORM_CPT_FORM && $screen->id == WPGFORM_CPT_FORM)
1081
  {
1082
  // wpGForm needs jQuery!
64
  /** Perform routine maintenance */
65
  function wpgform_routine_maintenance()
66
  {
 
67
  // Post type is registered, do some hygiene on any that exist in the database.
68
  // Insert the "wpgform" shortcode for that post into the post content. This
69
  // ensures the form will be displayed properly when viewed through the CPT URL.
1073
  {
1074
  global $post ;
1075
  $screen = get_current_screen() ;
 
1076
 
 
1077
  if ($screen->post_type == WPGFORM_CPT_FORM && $screen->id == WPGFORM_CPT_FORM)
1078
  {
1079
  // wpGForm needs jQuery!