Google Doc Embedder - Version 1.9.2

Version Description

  • Fixed: "Turn off beta notifications" needlessly still checked for beta version
  • Confirmed WP 2.9 compatibility
  • Beta delivery test
Download this release

Release Info

Developer k3davis
Plugin Icon wp plugin Google Doc Embedder
Version 1.9.2
Comparing to
See all releases

Code changes from version 1.9.1 to 1.9.2

Files changed (2) hide show
  1. gviewer.php +6 -6
  2. readme.txt +7 -48
gviewer.php CHANGED
@@ -5,10 +5,10 @@ Plugin Name: Google Doc Embedder
5
  Plugin URI: http://davismetro.com/gde/
6
  Description: Lets you embed PDF files, PowerPoint presentations, and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
7
  Author: Kevin Davis
8
- Version: 1.9.1
9
  */
10
 
11
- $gde_ver = "1.9.1.99";
12
 
13
  /**
14
  * LICENSE
@@ -195,7 +195,9 @@ function gde_checkforBeta($plugin) {
195
  if (preg_match('/-dev$/i', $pdata['Version'])) { $isbeta = 1; }
196
 
197
  if (strpos($pUrl.'/gviewer.php', $plugin) !== false) {
198
- $vcheck = wp_remote_fopen(GDE_BETA_CHKFILE);
 
 
199
  if ($vcheck) {
200
  $lver = $gde_ver;
201
 
@@ -227,9 +229,7 @@ function gde_checkforBeta($plugin) {
227
  }
228
  }
229
  }
230
- if ($gdeoptions['suppress_beta'] !== "yes") {
231
- add_action('after_plugin_row', 'gde_checkforBeta');
232
- }
233
 
234
  // activate shortcode
235
  add_shortcode('gview', 'gde_gviewer_func');
5
  Plugin URI: http://davismetro.com/gde/
6
  Description: Lets you embed PDF files, PowerPoint presentations, and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
7
  Author: Kevin Davis
8
+ Version: 1.9.2
9
  */
10
 
11
+ $gde_ver = "1.9.2.99";
12
 
13
  /**
14
  * LICENSE
195
  if (preg_match('/-dev$/i', $pdata['Version'])) { $isbeta = 1; }
196
 
197
  if (strpos($pUrl.'/gviewer.php', $plugin) !== false) {
198
+ if ($gdeoptions['suppress_beta'] !== "yes") {
199
+ $vcheck = wp_remote_fopen(GDE_BETA_CHKFILE);
200
+ }
201
  if ($vcheck) {
202
  $lver = $gde_ver;
203
 
229
  }
230
  }
231
  }
232
+ add_action('after_plugin_row', 'gde_checkforBeta');
 
 
233
 
234
  // activate shortcode
235
  add_shortcode('gview', 'gde_gviewer_func');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: k3davis
3
  Donate link: http://pledgie.com/campaigns/6048
4
  Tags: pdf, ppt, tiff, powerpoint, google, embed, google docs, document
5
  Requires at least: 2.8
6
- Tested up to: 2.9-rare
7
  Stable tag: trunk
8
 
9
  Lets you embed PDF, PowerPoint presentations (PPT), and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
@@ -60,6 +60,11 @@ That's not a question ;) but if you have any particular ideas on further develop
60
 
61
  == Changelog ==
62
 
 
 
 
 
 
63
  = 1.9.1 =
64
  * Fixed: Options not saved in some instances due to variable collision (thanks gadgetto)
65
  * Fixed: Options not saved when plugin is reactivated
@@ -82,50 +87,4 @@ That's not a question ;) but if you have any particular ideas on further develop
82
  * Added: Ability to set height/width to percentage (thanks eturfboer)
83
  * Fixed: Compatibility with PHP 5.3+, various function tuning
84
 
85
- = 1.7.3 =
86
- * Fixed: File URL containing tilde (~) considered invalid (thanks mjurek)
87
-
88
- = 1.7.2 =
89
- * Removed: toolbar button options (Google prevents this from working, sorry)
90
-
91
- = 1.7.1 =
92
- * Fixed: Misleading error message if file= attribute not used (thanks ersavla)
93
- * Fixed: Bug in cURL header may cause false "not found" error
94
-
95
- = 1.7 =
96
- * Added: Ability to hide selected viewer toolbar buttons
97
- * Fixed: Mask URL option ignored on non-PDF file types
98
-
99
- = 1.6 =
100
- * Added: Additional class names for optional stylesheet use
101
- * Added: Support to embed TIFF images
102
- * Fixed: Invalid settings link in plugin list (WordPress MU)
103
- * Changed: Embed path to conform to Google published guidelines
104
-
105
- = 1.5.1 =
106
- * Fixed: Viewer not hidden if linked file not found
107
- * Fixed: Divide by zero error if file size can't be determined
108
- * Fixed: PHP error if file not found (force download link)
109
- * Fixed: File not found falsely reported on some web servers
110
-
111
- = 1.5 =
112
- * Improved error checking.
113
- * Improved customization options for download text.
114
- * Added option to override default browser behavior for PDF links (force download).
115
- * Added option to reset options to defaults.
116
-
117
- = 1.0.3 =
118
- * Installation bug fix. If you installed 1.0, please completely delete and reinstall plugin. Sorry :(
119
-
120
- = 1.0 =
121
- * Added options page.
122
-
123
- = 0.3 =
124
- * Error checking added.
125
-
126
- = 0.2 =
127
- * Initial beta release. Fully functional, but no niceties...
128
-
129
- == License ==
130
-
131
- This plugin is free for everyone. Since it's released under the GPL, you can use it free of charge on your personal or commercial blog.
3
  Donate link: http://pledgie.com/campaigns/6048
4
  Tags: pdf, ppt, tiff, powerpoint, google, embed, google docs, document
5
  Requires at least: 2.8
6
+ Tested up to: 2.9
7
  Stable tag: trunk
8
 
9
  Lets you embed PDF, PowerPoint presentations (PPT), and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
60
 
61
  == Changelog ==
62
 
63
+ = 1.9.2 =
64
+ * Fixed: "Turn off beta notifications" needlessly still checked for beta version
65
+ * Confirmed WP 2.9 compatibility
66
+ * Beta delivery test
67
+
68
  = 1.9.1 =
69
  * Fixed: Options not saved in some instances due to variable collision (thanks gadgetto)
70
  * Fixed: Options not saved when plugin is reactivated
87
  * Added: Ability to set height/width to percentage (thanks eturfboer)
88
  * Fixed: Compatibility with PHP 5.3+, various function tuning
89
 
90
+ <a href="http://davismetro.com/gde/changelog/" target="_blank">Full history...</a>