Google Doc Embedder - Version 2.4.2

Version Description

  • Fixed: PHP Warning related to MIME type expansion (thanks Adebayo)
Download this release

Release Info

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

Code changes from version 2.4.1 to 2.4.2

Files changed (3) hide show
  1. gde-functions.php +1 -1
  2. gviewer.php +2 -2
  3. readme.txt +5 -2
gde-functions.php CHANGED
@@ -260,7 +260,7 @@ function gde_upload_mimes ( $existing_mimes=array() ) {
260
  function gde_mimes_expanded(array $types) {
261
  // expand the supported mime types so that every ext is its own key
262
  foreach ($types as $k => $v) {
263
- if (substr("|", $k)) {
264
  $subtypes = explode("|", $k);
265
  foreach ($subtypes as $type) {
266
  $newtypes[$type] = $v;
260
  function gde_mimes_expanded(array $types) {
261
  // expand the supported mime types so that every ext is its own key
262
  foreach ($types as $k => $v) {
263
+ if (strpos("|", $k)) {
264
  $subtypes = explode("|", $k);
265
  foreach ($subtypes as $type) {
266
  $newtypes[$type] = $v;
gviewer.php CHANGED
@@ -8,11 +8,11 @@ Author: Kevin Davis
8
  Author URI: http://www.davistribe.org/
9
  Text Domain: gde
10
  Domain Path: /languages/
11
- Version: 2.4.1
12
  License: GPLv2
13
  */
14
 
15
- $gde_ver = "2.4.1.98";
16
 
17
  /**
18
  * LICENSE
8
  Author URI: http://www.davistribe.org/
9
  Text Domain: gde
10
  Domain Path: /languages/
11
+ Version: 2.4.2
12
  License: GPLv2
13
  */
14
 
15
+ $gde_ver = "2.4.2.98";
16
 
17
  /**
18
  * LICENSE
readme.txt CHANGED
@@ -120,6 +120,9 @@ You can open a topic [on the forum](http://wordpress.org/tags/google-document-em
120
 
121
  == Changelog ==
122
 
 
 
 
123
  = 2.4.1 =
124
  * Added: Spanish translation (thanks elarequi)
125
  * Added: Method to obtain debug information
@@ -171,5 +174,5 @@ You can open a topic [on the forum](http://wordpress.org/tags/google-document-em
171
 
172
  == Upgrade Notice ==
173
 
174
- = 2.4.1 =
175
- Localization improvements, bug fix
120
 
121
  == Changelog ==
122
 
123
+ = 2.4.2 =
124
+ * Fixed: PHP Warning related to MIME type expansion (thanks Adebayo)
125
+
126
  = 2.4.1 =
127
  * Added: Spanish translation (thanks elarequi)
128
  * Added: Method to obtain debug information
174
 
175
  == Upgrade Notice ==
176
 
177
+ = 2.4.2 =
178
+ MIME expansion bug fix