SVG Support - Version 2.2.2

Version Description

  • Changed another anonymous function in svg-support/functions/thumbnail-display.php that was causing errors for some.
Download this release

Release Info

Developer Benbodhi
Plugin Icon 128x128 SVG Support
Version 2.2.2
Comparing to
See all releases

Code changes from version 2.2.1 to 2.2.2

Files changed (3) hide show
  1. functions/thumbnail-display.php +3 -2
  2. readme.txt +10 -2
  3. svg-support.php +2 -2
functions/thumbnail-display.php CHANGED
@@ -28,7 +28,8 @@ function bodhi_svgs_display_thumbs() {
28
 
29
  }
30
 
31
- add_filter( 'final_output', function( $content ) {
 
32
 
33
  $content = str_replace(
34
  '<# } else if ( \'image\' === data.type && data.sizes && data.sizes.full ) { #>',
@@ -52,5 +53,5 @@ function bodhi_svgs_display_thumbs() {
52
 
53
  return $content;
54
 
55
- });
56
  }
28
 
29
  }
30
 
31
+ add_filter( 'final_output', 'bodhi_svgs_final_output' );
32
+ function bodhi_svgs_final_output( $content ) {
33
 
34
  $content = str_replace(
35
  '<# } else if ( \'image\' === data.type && data.sizes && data.sizes.full ) { #>',
53
 
54
  return $content;
55
 
56
+ }
57
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Benbodhi
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=F7W2NUFAVQGW2
4
  Tags: svg, vector, css, style, mime, mime type, embed, img, inline
5
  Requires at least: 4.0
6
- Tested up to: 4.3
7
- Stable tag: 2.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -109,6 +109,10 @@ I will put the answers to any questions asked here.
109
 
110
  == Changelog ==
111
 
 
 
 
 
112
  = 2.2.1 =
113
 
114
  * Changed anonymous function in svg-support/functions/thumbnail-display.php line 15 to prevent fatal error in older PHP versions.
@@ -178,6 +182,10 @@ I will put the answers to any questions asked here.
178
 
179
  == Upgrade Notice ==
180
 
 
 
 
 
181
  = 2.2.1 =
182
 
183
  * Minor change to remove anonymous function that triggered a fatal error in older PHP versions.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=F7W2NUFAVQGW2
4
  Tags: svg, vector, css, style, mime, mime type, embed, img, inline
5
  Requires at least: 4.0
6
+ Tested up to: 4.4
7
+ Stable tag: 2.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
109
 
110
  == Changelog ==
111
 
112
+ = 2.2.2 =
113
+
114
+ * Changed another anonymous function in svg-support/functions/thumbnail-display.php that was causing errors for some.
115
+
116
  = 2.2.1 =
117
 
118
  * Changed anonymous function in svg-support/functions/thumbnail-display.php line 15 to prevent fatal error in older PHP versions.
182
 
183
  == Upgrade Notice ==
184
 
185
+ = 2.2.2 =
186
+
187
+ * Fix - Another change from anonymous function that was triggering errors for some.
188
+
189
  = 2.2.1 =
190
 
191
  * Minor change to remove anonymous function that triggered a fatal error in older PHP versions.
svg-support.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SVG Support
4
  Plugin URI: http://wordpress.org/plugins/svg-support/
5
  Description: Allow SVG file uploads using the WordPress Media Library uploader plus direct styling of SVG elements using CSS.
6
- Version: 2.2.1
7
  Author: Benbodhi
8
  Author URI: http://benbodhi.com
9
  Text Domain: svgsupport
@@ -35,7 +35,7 @@ if ( ! defined( 'ABSPATH' ) ) {
35
  /********************************************
36
  * GLOBAL VARIABLES
37
  ********************************************/
38
- $plugin_version = '2.2.1'; // for use on admin pages
39
  $plugin_file = plugin_basename(__FILE__); // plugin file for reference
40
  define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
41
  $bodhi_svgs_options = get_option('bodhi_svgs_settings'); // retrieve our plugin settings from the options table
3
  Plugin Name: SVG Support
4
  Plugin URI: http://wordpress.org/plugins/svg-support/
5
  Description: Allow SVG file uploads using the WordPress Media Library uploader plus direct styling of SVG elements using CSS.
6
+ Version: 2.2.2
7
  Author: Benbodhi
8
  Author URI: http://benbodhi.com
9
  Text Domain: svgsupport
35
  /********************************************
36
  * GLOBAL VARIABLES
37
  ********************************************/
38
+ $plugin_version = '2.2.2'; // for use on admin pages
39
  $plugin_file = plugin_basename(__FILE__); // plugin file for reference
40
  define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
41
  $bodhi_svgs_options = get_option('bodhi_svgs_settings'); // retrieve our plugin settings from the options table